From 81a8f638e2a60a4564a2a083b655d6e15935a1c1 Mon Sep 17 00:00:00 2001 From: Kenyon Ralph Date: Sun, 7 Jan 2024 15:02:17 -0800 Subject: [PATCH] remove code for EOL and unsupported Debian 7 wheezy --- README.md | 8 -------- manifests/repos.pp | 12 ++---------- spec/shared_examples/repos.rb | 6 ------ 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index a23ad507..20e5723f 100644 --- a/README.md +++ b/README.md @@ -62,14 +62,6 @@ class { 'docker': } ``` -Using a version prior to 17.06, configures and installs from the old repositories: - -```puppet -class { 'docker': - version => '1.12.0-0~wheezy', -} -``` - Docker provides a enterprise addition of the [Docker Engine](https://www.docker.com/enterprise-edition), called Docker EE. To install Docker EE on Debian systems, add the following code to the manifest file: ```puppet diff --git a/manifests/repos.pp b/manifests/repos.pp index a1c2816d..af42f452 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -51,21 +51,12 @@ if $docker::manage_package { include apt - - if (versioncmp($facts['facterversion'], '2.4.6') <= 0) { - if $facts['os']['name'] == 'Debian' and $facts['os']['lsb']['distcodename'] == 'wheezy' { - include apt::backports - } - } else { - if $facts['os']['name'] == 'Debian' and $facts['os']['distro']['codename'] == 'wheezy' { - include apt::backports - } - } Exec['apt_update'] -> Package[$docker::prerequired_packages] Apt::Source['docker'] -> Package['docker'] } } } + 'RedHat': { if ($docker::manage_package) { $baseurl = $location @@ -84,6 +75,7 @@ } } } + default: {} } } diff --git a/spec/shared_examples/repos.rb b/spec/shared_examples/repos.rb index 8330f8ee..f19cb8b5 100644 --- a/spec/shared_examples/repos.rb +++ b/spec/shared_examples/repos.rb @@ -65,12 +65,6 @@ expect(subject).to contain_class('apt') } - if facts[:os]['name'] == 'Debian' && facts[:os]['distro']['codename'] == 'wheezy' - it { - expect(subject).to contain_class('apt::backports') - } - end - it { params['prerequired_packages'].each do |package| expect(subject).to contain_exec('apt_update').that_comes_before("package[#{package}]")