Skip to content

Commit

Permalink
drop EOL OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoll committed Mar 19, 2019
1 parent 5ecda93 commit 143199e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
6 changes: 1 addition & 5 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,7 @@
case $::osfamily {
'Debian' : {
$agent_restart_command = "/usr/sbin/service ${service_name} reload"
if ($::operatingsystem == 'Debian' or $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '15.04') >= 0) {
$unavailable_runmodes = []
} else {
$unavailable_runmodes = ['systemd.timer']
}
$unavailable_runmodes = []
}
'Redhat' : {
# PSBM is a CentOS 6 based distribution
Expand Down
2 changes: 0 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04",
"16.04",
"18.04"
]
},
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"10",
"11",
"12"
]
Expand Down
8 changes: 1 addition & 7 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
when 'darwin'
'launchd'
when 'debian'
if facts[:operatingsystem] == 'Ubuntu'
facts[:operatingsystemmajrelease].to_i >= 15 ? 'systemd' : 'upstart'
elsif facts[:operatingsystem] == 'Debian' && facts[:operatingsystemmajrelease].to_i >= 8
'systemd'
else
'debian'
end
'systemd'
when 'freebsd'
'freebsd'
when 'gentoo'
Expand Down

0 comments on commit 143199e

Please sign in to comment.