Fuel plugin for Mellanox support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

controller.pp 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. $mlnx = hiera('mellanox-plugin')
  2. $eswitch_vnic_type = 'hostdev'
  3. $eswitch_apply_profile_patch = 'True'
  4. $mechanism_drivers = 'openvswitch'
  5. $roles = hiera('roles')
  6. # Configure QoS for connectX3 ETH
  7. if ( $mlnx['driver'] == 'mlx4_en' and $mlnx['mlnx_qos'] ) {
  8. class { 'mellanox_openstack::configure_qos' :
  9. mlnx_sriov => $mlnx['sriov'],
  10. roles => $roles
  11. }
  12. }
  13. if ($mlnx['sriov']) {
  14. $pci_vendor_devices = '15b3:1014,15b3:1016,15b3:1018'
  15. $agent_required = 'True'
  16. class { 'mellanox_openstack::controller_sriov' :
  17. eswitch_vnic_type => $eswitch_vnic_type,
  18. eswitch_apply_profile_patch => $eswitch_apply_profile_patch,
  19. mechanism_drivers => $mechanism_drivers,
  20. mlnx_driver => $mlnx['driver'],
  21. network_type => $mlnx['network_type'],
  22. mlnx_sriov => $mlnx['sriov'],
  23. pci_vendor_devices => $pci_vendor_devices,
  24. agent_required => $agent_required,
  25. use_mlnx_neo => $mlnx['use_mlnx_neo']
  26. }
  27. }
  28. # Configure broadcast dnsmasq for IB PV
  29. elsif ($mlnx['driver'] == 'eth_ipoib') {
  30. class { 'mellanox_openstack::controller_ib_pv' : }
  31. }