From 144b4645c1c404f17c1ab26edd53a77b87059c7c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 27 Feb 2022 22:38:26 +0900 Subject: [PATCH] Remove logic for Debian Wheezy (7.0) ... as we no longer support such old version. Change-Id: I90288af38a1f351cc170d5016847e4b0d793ac60 --- manifests/params.pp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index fbb2e94d..cd6a1ec5 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -22,25 +22,9 @@ class vswitch::params { $ovs_dkms_package_name = 'openvswitch-datapath-dkms' $ovs_service_name = 'openvswitch-switch' $ovsdb_service_name = undef + $ovs_service_hasstatus = true + $ovs_status = undef $provider = 'ovs' - case $::operatingsystem { - 'ubuntu': { - $ovs_service_hasstatus = true - $ovs_status = undef - } - 'debian': { - if ($::lsbdistcodename == 'wheezy') { - $ovs_service_hasstatus = false - $ovs_status = '/etc/init.d/openvswitch-switch status | fgrep -q "not running"; if [ $? -eq 0 ]; then exit 1; else exit 0; fi' # lint:ignore:140chars - } else { - $ovs_service_hasstatus = true - $ovs_status = undef - } - } - default: { - fail('Unsupported Debian based system') - } - } } default: { fail " Osfamily ${::osfamily} not supported yet"