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
22 lines
580 B
Puppet
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
|
|
}
|