Skip to content

Commit

Permalink
Merge pull request #494 from ekohl/remove-service-detection
Browse files Browse the repository at this point in the history
Move to Debian 9 and Ubuntu 16.04/18.04
  • Loading branch information
alexjfisher authored Oct 14, 2018
2 parents 9c0ef87 + 88f239f commit ea3feb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
23 changes: 0 additions & 23 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -171,27 +171,4 @@
fail("Osfamily ${::osfamily} and ${::operatingsystem} is not supported")
}
}

case $::operatingsystem {
'Debian': {
case $::operatingsystemmajrelease {
'8': {
$service_provider = pick($service_provider, 'systemd')
}
default: {
$service_provider = pick($service_provider, 'debian')
}
}
}
'Ubuntu': {
if versioncmp($::operatingsystemmajrelease, '16') >= 0 {
$service_provider = pick($service_provider, 'systemd')
} else {
$service_provider = pick($service_provider, 'upstart')
}
}
default: {
$service_provider = undef
}
}
}
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"8"
"9"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04",
"16.04"
"16.04",
"18.04"
]
}
],
Expand Down

0 comments on commit ea3feb2

Please sign in to comment.