Skip to content

Commit

Permalink
remove code for EOL and unsupported Debian 7 wheezy
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyon committed Sep 27, 2024
1 parent 1398ddc commit 81a8f63
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 2 additions & 10 deletions manifests/repos.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -84,6 +75,7 @@
}
}
}

default: {}
}
}
6 changes: 0 additions & 6 deletions spec/shared_examples/repos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}]")
Expand Down

0 comments on commit 81a8f63

Please sign in to comment.