Skip to content

Commit

Permalink
remove EOL OSes, add new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoll authored and ekohl committed Oct 25, 2017
1 parent 8963eee commit 4ae11d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
11 changes: 4 additions & 7 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,21 @@
{
"operatingsystem": "Fedora",
"operatingsystemrelease": [
"24"
"25",
"26"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04",
"14.04",
"16.04"
]
Expand All @@ -99,8 +100,6 @@
{
"operatingsystem": "DragonFly",
"operatingsystemrelease": [
"3.6",
"3.8",
"4"
]
},
Expand All @@ -117,10 +116,8 @@
{
"operatingsystem": "windows",
"operatingsystemrelease": [
"Vista",
"7",
"8",
"2008",
"2008 R2",
"2012",
"2012 R2"
Expand Down
8 changes: 4 additions & 4 deletions spec/classes/puppet_agent_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
should contain_class('puppet::agent::service::cron').with(:enabled => false)
end
case os
when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
it do
should contain_class('puppet::agent::service::systemd').with(:enabled => false)
should contain_service('puppet-run.timer').with(:ensure => :stopped)
Expand All @@ -51,7 +51,7 @@
it do
should raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/)
end
when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/
it do
should contain_class('puppet::agent::service::cron').with(:enabled => true)
should contain_class('puppet::agent::service::daemon').with(:enabled => false)
Expand All @@ -73,7 +73,7 @@
"class {'puppet': agent => true, runmode => 'systemd.timer'}"
end
case os
when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
it do
should contain_class('puppet::agent::service::daemon').with(:enabled => false)
should contain_class('puppet::agent::service::cron').with(:enabled => false)
Expand Down Expand Up @@ -105,7 +105,7 @@
should contain_class('puppet::agent::service::cron').with(:enabled => false)
end
case os
when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
it do
should contain_class('puppet::agent::service::systemd').with(:enabled => false)
should contain_service('puppet-run.timer').with(:ensure => :stopped)
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/puppet_agent_service_systemd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

case os
when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
it 'should disable systemd timer' do
should contain_class('puppet::agent::service::systemd').with({
'enabled' => false,
Expand Down Expand Up @@ -74,7 +74,7 @@
end

case os
when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
it 'should enable systemd timer' do
should contain_class('puppet::agent::service::systemd').with({
'enabled' => true,
Expand Down

0 comments on commit 4ae11d7

Please sign in to comment.