Remove logic for Debian Wheezy (7.0)
... as we no longer support such old version. Change-Id: I90288af38a1f351cc170d5016847e4b0d793ac60
This commit is contained in:
parent
501ac37085
commit
144b4645c1
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user