fuel-plugin-mellanox/deployment_scripts/puppet/manifests/controller.pp

34 lines
1.1 KiB
Puppet

$mlnx = hiera('mellanox-plugin')
$eswitch_vnic_type = 'hostdev'
$eswitch_apply_profile_patch = 'True'
$mechanism_drivers = 'openvswitch'
$roles = hiera('roles')
# Configure QoS for connectX3 ETH
if ( $mlnx['driver'] == 'mlx4_en' and $mlnx['mlnx_qos'] ) {
class { 'mellanox_openstack::configure_qos' :
mlnx_sriov => $mlnx['sriov'],
roles => $roles
}
}
if ($mlnx['sriov']) {
$pci_vendor_devices = '15b3:1014,15b3:1016'
$agent_required = 'True'
class { 'mellanox_openstack::controller_sriov' :
eswitch_vnic_type => $eswitch_vnic_type,
eswitch_apply_profile_patch => $eswitch_apply_profile_patch,
mechanism_drivers => $mechanism_drivers,
mlnx_driver => $mlnx['driver'],
network_type => $mlnx['network_type'],
mlnx_sriov => $mlnx['sriov'],
pci_vendor_devices => $pci_vendor_devices,
agent_required => $agent_required,
use_mlnx_neo => $mlnx['use_mlnx_neo']
}
}
# Configure broadcast dnsmasq for IB PV
elsif ($mlnx['driver'] == 'eth_ipoib') {
class { 'mellanox_openstack::controller_ib_pv' : }
}