Skip to content

Commit

Permalink
Remove 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 14, 2018
1 parent 52419bd commit ba5d304
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 @@ -194,27 +194,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 ba5d304

Please sign in to comment.