flat.pp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # == Class: nova::network::flat
  2. #
  3. # Configuration settings for nova flat network
  4. #
  5. # === Parameters:
  6. #
  7. # [*fixed_range*]
  8. # (required) The IPv4 CIDR for the network
  9. #
  10. # [*flat_interface*]
  11. # (optional) Interface that flat network will use for bridging
  12. # Defaults to undef
  13. #
  14. # [*public_interface*]
  15. # (optional) The interface to use for public traffic
  16. # Defaults to undef
  17. #
  18. # [*flat_network_bridge*]
  19. # (optional) The name of the bridge to use
  20. # Defaults to 'br100'
  21. #
  22. class nova::network::flat (
  23. $fixed_range,
  24. $flat_interface=undef,
  25. $public_interface = undef,
  26. $flat_network_bridge = 'br100'
  27. ) {
  28. include ::nova::deps
  29. if $public_interface {
  30. nova_config { 'DEFAULT/public_interface': value => $public_interface }
  31. }
  32. nova_config {
  33. 'DEFAULT/network_manager': value => 'nova.network.manager.FlatManager';
  34. 'DEFAULT/fixed_range': value => $fixed_range;
  35. 'DEFAULT/flat_interface': value => $flat_interface;
  36. 'DEFAULT/flat_network_bridge': value => $flat_network_bridge;
  37. }
  38. }