Files
puppet-vswitch/manifests/params.pp
Benedikt Trefzer 8bdf36261b make dkms on Debian/Ubuntu optional, add tests
Adds a parameter to turn off dkms for kernel
module.
By default the old behaviour of the modules stays.
On RedHat this parameter has no function.

Dkms Package for openvswitch are not available
on Debian newer than wheezy and Ubuntu newer
than utopic (or on backports). Which makes
the manifests fail on these systems whithout
setting dkms_ensure to false.

Add some initial rspec tests.

Change-Id: Id20ed728e9ed416ae0ff40e26d61ba3ca022355c
2015-05-12 03:36:48 +00:00

22 lines
580 B
Puppet

# vswitch params
#
class vswitch::params {
case $::osfamily {
'Redhat': {
$ovs_package_name = 'openvswitch'
$ovs_dkms_package_name = undef
$ovs_service_name = 'openvswitch'
$provider = 'ovs_redhat'
}
'Debian': {
$ovs_package_name = 'openvswitch-switch'
$ovs_dkms_package_name = 'openvswitch-datapath-dkms'
$ovs_service_name = 'openvswitch-switch'
$provider = 'ovs'
}
default: {
fail " Osfamily ${::osfamily} not supported yet"
}
} # Case $::osfamily
}