Skip to content

Commit 2420cfd

Browse files
committed
remove code for EOL and unsupported Debian 7 wheezy
1 parent cabba05 commit 2420cfd

3 files changed

Lines changed: 2 additions & 24 deletions

File tree

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ class { 'docker':
6262
}
6363
```
6464

65-
Using a version prior to 17.06, configures and installs from the old repositories:
66-
67-
```puppet
68-
class { 'docker':
69-
version => '1.12.0-0~wheezy',
70-
}
71-
```
72-
7365
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:
7466

7567
```puppet

manifests/repos.pp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,12 @@
5252

5353
if $docker::manage_package {
5454
include apt
55-
56-
if (versioncmp($facts['facterversion'], '2.4.6') <= 0) {
57-
if $facts['os']['name'] == 'Debian' and $facts['os']['lsb']['distcodename'] == 'wheezy' {
58-
include apt::backports
59-
}
60-
} else {
61-
if $facts['os']['name'] == 'Debian' and $facts['os']['distro']['codename'] == 'wheezy' {
62-
include apt::backports
63-
}
64-
}
6555
Exec['apt_update'] -> Package[$docker::prerequired_packages]
6656
Apt::Source['docker'] -> Package['docker']
6757
}
6858
}
6959
}
60+
7061
'RedHat': {
7162
if ($docker::manage_package) {
7263
$baseurl = $location
@@ -85,6 +76,7 @@
8576
}
8677
}
8778
}
79+
8880
default: {}
8981
}
9082
}

spec/shared_examples/repos.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@
6565
expect(subject).to contain_class('apt')
6666
}
6767

68-
if facts[:os]['name'] == 'Debian' && facts[:os]['distro']['codename'] == 'wheezy'
69-
it {
70-
expect(subject).to contain_class('apt::backports')
71-
}
72-
end
73-
7468
it {
7569
params['prerequired_packages'].each do |package|
7670
expect(subject).to contain_exec('apt_update').that_comes_before("package[#{package}]")

0 commit comments

Comments
 (0)