From ba5d304e09ddd8abc37decf6435d7ab9c3ad5e79 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Sat, 6 Oct 2018 13:17:07 +0200 Subject: [PATCH] Remove service provider detection We should be able to rely on Puppet setting the correct defaults. --- manifests/params.pp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index fb7cd947f..2968db4f8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 - } - } }