From 45f4db9702891edc8d17598cdb2cf1dc95d47d82 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 14 Feb 2022 15:33:49 -0800 Subject: [PATCH] puppet: Remove unused $release_name. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It would confuse a future Debian 15.10 release with Ubuntu 15.10, it relies on the legacy fact $::operatingsystemrelease, the modern fact $::os provides this information without extra logic, and it’s unused as of commit 03bffd3938a0c18ceac2f5eba5aa00c040dcb75b. Signed-off-by: Anders Kaseorg --- puppet/zulip/manifests/profile/base.pp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/puppet/zulip/manifests/profile/base.pp b/puppet/zulip/manifests/profile/base.pp index 37a2cb0f22..d5cc07edf3 100644 --- a/puppet/zulip/manifests/profile/base.pp +++ b/puppet/zulip/manifests/profile/base.pp @@ -17,22 +17,6 @@ class zulip::profile::base { } case $::osfamily { 'debian': { - $release_name = $::operatingsystemrelease ? { - # Debian releases - /^7\.[0-9]*$/ => 'wheezy', - /^8\.[0-9]*$/ => 'jessie', - /^9\.[0-9]*$/ => 'stretch', - /^10\.[0-9]*$/ => 'buster', - /^11\.[0-9]*$/ => 'bullseye', - # Ubuntu releases - '12.04' => 'precise', - '14.04' => 'trusty', - '15.04' => 'vivid', - '15.10' => 'wily', - '16.04' => 'xenial', - '18.04' => 'bionic', - '20.04' => 'focal', - } $base_packages = [ # Basics 'python3', @@ -57,7 +41,6 @@ class zulip::profile::base { ] } 'redhat': { - $release_name = "${::operatingsystem}${::operatingsystemmajrelease}" $base_packages = [ 'python3', 'python3-pyyaml',