fuel-library/deployment/puppet/l23network/manifests/params.pp
Stanislav Makar ce64b166b5 Use kernel build-in openVswitch module for CentOS7/RHEL7
* Move hardcoded CentOS6 ovs_datapath_package_name from l23network::params.pp
to top netconfig.pp manifest.
* Add the possibility to use DKMS datapath openVswitch or kernel build-in module
for l23network.

Change-Id: I7b006a9dc3b3ec5b22dd41cc15b57d5730e4810c
Closes-bug: #1508515
2015-10-26 15:49:51 +00:00

52 lines
1.9 KiB
Puppet

# L23network OS-aware constants
#
class l23network::params {
$monolith_bond_providers = ['ovs']
case $::l23_os {
/(?i)ubuntu/: {
$interfaces_dir = '/etc/network/interfaces.d'
$interfaces_file = '/etc/network/interfaces'
$ovs_service_name = 'openvswitch-switch'
$ovs_status_cmd = '/etc/init.d/openvswitch-switch status'
$lnx_vlan_tools = 'vlan'
$lnx_bond_tools = 'ifenslave'
$lnx_ethernet_tools = 'ethtool'
$lnx_bridge_tools = 'bridge-utils'
$ovs_datapath_package_name = 'openvswitch-datapath-dkms'
$ovs_common_package_name = 'openvswitch-switch'
$ovs_kern_module_name = 'openvswitch'
$extra_tools = 'iputils-arping'
}
/(?i:redhat|centos)/: {
$interfaces_dir = '/etc/sysconfig/network-scripts'
$interfaces_file = undef
$ovs_service_name = 'openvswitch'
$ovs_status_cmd = '/etc/init.d/openvswitch status'
$lnx_vlan_tools = undef
$lnx_bond_tools = undef
$lnx_ethernet_tools = 'ethtool'
$lnx_bridge_tools = 'bridge-utils'
$ovs_datapath_package_name = 'kmod-openvswitch'
$ovs_common_package_name = 'openvswitch'
$ovs_kern_module_name = 'openvswitch'
$extra_tools = 'iputils'
}
/(?i)darwin/: {
$interfaces_dir = '/tmp/1'
$interfaces_file = undef
$ovs_service_name = undef
$lnx_vlan_tools = undef
$lnx_bond_tools = undef
$lnx_ethernet_tools = undef
$lnx_bridge_tools = undef
$ovs_datapath_package_name = undef
$ovs_common_package_name = undef
$ovs_kern_module_name = unedf
}
default: {
fail("Unsupported OS: ${::l23_os}/${::operatingsystem}")
}
}
}