Skip to content

Commit

Permalink
Rip out service provider detection
Browse files Browse the repository at this point in the history
We should be able to rely on Puppet setting the correct defaults.
  • Loading branch information
ekohl committed Oct 7, 2018
1 parent 768902e commit 9ed8bb8
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -205,27 +205,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
}
}
}

0 comments on commit 9ed8bb8

Please sign in to comment.