Skip to content

Commit 8a45aa7

Browse files
committed
Drop Ubuntu 16.04, Debian 9, Fedora 31, SLES 11, Windows 8; add F36, EL9
1 parent 44d7291 commit 8a45aa7

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

metadata.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@
4343
"operatingsystem": "RedHat",
4444
"operatingsystemrelease": [
4545
"7",
46-
"8"
46+
"8",
47+
"9"
4748
]
4849
},
4950
{
5051
"operatingsystem": "CentOS",
5152
"operatingsystemrelease": [
5253
"7",
54+
"8",
5355
"8"
5456
]
5557
},
@@ -62,20 +64,19 @@
6264
{
6365
"operatingsystem": "Fedora",
6466
"operatingsystemrelease": [
65-
"31"
67+
"36"
6668
]
6769
},
6870
{
6971
"operatingsystem": "Debian",
7072
"operatingsystemrelease": [
71-
"9",
72-
"10"
73+
"10",
74+
"11"
7375
]
7476
},
7577
{
7678
"operatingsystem": "Ubuntu",
7779
"operatingsystemrelease": [
78-
"16.04",
7980
"18.04",
8081
"20.04"
8182
]
@@ -99,14 +100,12 @@
99100
{
100101
"operatingsystem": "SLES",
101102
"operatingsystemrelease": [
102-
"11",
103103
"12"
104104
]
105105
},
106106
{
107107
"operatingsystem": "windows",
108108
"operatingsystemrelease": [
109-
"8",
110109
"2012",
111110
"2012 R2"
112111
]

spec/classes/puppet_agent_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494

9595
it { is_expected.to contain_class('puppet::agent::service::systemd').with_enabled(false) }
9696
case os
97-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Asles-12-/, /\Aarchlinux-/
97+
when /\A(debian|redhat|centos|scientific|fedora|ubuntu|sles|archlinux)-/
9898
it do
9999
is_expected.to contain_service('puppet-run.timer')
100100
.with_ensure(false)
@@ -171,7 +171,7 @@
171171
case os
172172
when /\A(windows|archlinux)/
173173
it { is_expected.to raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) }
174-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Asles-12/
174+
when /\A(debian|redhat|centos|scientific|fedora|ubuntu|sles)-/
175175
it { is_expected.to compile.with_all_deps }
176176
it { is_expected.to contain_concat__fragment('puppet.conf_agent') }
177177
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(true) }
@@ -219,7 +219,7 @@
219219
case os
220220
when /\A(windows|archlinux)/
221221
it { is_expected.to raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) }
222-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Asles-12/
222+
when /\A(debian|redhat|centos|scientific|fedora|ubuntu|sles)-/
223223
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(true) }
224224
it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) }
225225
it do
@@ -260,7 +260,7 @@
260260
end
261261

262262
case os
263-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Asles-12/, /\Aarchlinux-/
263+
when /\A(debian|redhat|centos|scientific|fedora|ubuntu|sles|archlinux)-/
264264
it { is_expected.to compile.with_all_deps }
265265
it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) }
266266
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(false) }
@@ -303,7 +303,7 @@
303303
end
304304

305305
case os
306-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Asles-12/, /\Aarchlinux-/
306+
when /\A(debian|redhat|centos|scientific|fedora|ubuntu|sles|archlinux)-/
307307
it { is_expected.to compile.with_all_deps }
308308
it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) }
309309
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(false) }
@@ -351,7 +351,7 @@
351351
it { is_expected.to contain_class('puppet::agent::service::systemd').with_enabled(false) }
352352

353353
case os
354-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Asles-12/, /\Aarchlinux-/
354+
when /\A(debian|redhat|centos|scientific|fedora|ubuntu|sles|archlinux)-/
355355
it { is_expected.to contain_service('puppet-run.timer').with_ensure(false) }
356356
else
357357
it { is_expected.not_to contain_service('puppet-run.timer') }

spec/support/acceptance/puppetserver.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ def unsupported_puppetserver
44
true
55
when 'Fedora'
66
true
7+
when 'Debian'
8+
host_inventory['facter']['os']['release']['major'] == '11'
79
when 'Ubuntu'
810
ENV['BEAKER_PUPPET_COLLECTION'] == 'puppet6' && host_inventory['facter']['os']['release']['major'] == '20.04'
911
end

0 commit comments

Comments
 (0)