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

23 lines
552 B
Puppet

class mellanox_openstack::controller (
$eswitch_vnic_type,
$eswitch_apply_profile_patch,
$mechanism_drivers,
) {
include neutron::params
$server_service = $neutron::params::server_service
neutron_plugin_ml2 {
'eswitch/vnic_type': value => $eswitch_vnic_type;
'eswitch/apply_profile_patch': value => $eswitch_apply_profile_patch;
'ml2/mechanism_drivers': value => "mlnx,${mechanism_drivers}";
}
service { $server_service :
ensure => running
}
Neutron_plugin_ml2 <||> ~>
Service[$server_service]
}