X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fnova%2Fmanifests%2Fnetwork%2Fflat.pp;fp=3rdparty%2Fmodules%2Fnova%2Fmanifests%2Fnetwork%2Fflat.pp;h=8c2d767d3e9abc7ae583d6d60652038bca3706a4;hp=0000000000000000000000000000000000000000;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa diff --git a/3rdparty/modules/nova/manifests/network/flat.pp b/3rdparty/modules/nova/manifests/network/flat.pp new file mode 100644 index 00000000..8c2d767d --- /dev/null +++ b/3rdparty/modules/nova/manifests/network/flat.pp @@ -0,0 +1,40 @@ +# == Class: nova::network::flat +# +# Configuration settings for nova flat network +# +# === Parameters: +# +# [*fixed_range*] +# (required) The IPv4 CIDR for the network +# +# [flat_interface] +# (optional) Interface that flat network will use for bridging +# Defaults to undef +# +# [*public_interface*] +# (optional) The interface to use for public traffic +# Defaults to undef +# +# [flat_network_bridge] +# (optional) The name of the bridge to use +# Defaults to 'br100' +# +class nova::network::flat ( + $fixed_range, + $flat_interface=undef, + $public_interface = undef, + $flat_network_bridge = 'br100' +) { + + if $public_interface { + nova_config { 'DEFAULT/public_interface': value => $public_interface } + } + + nova_config { + 'DEFAULT/network_manager': value => 'nova.network.manager.FlatManager'; + 'DEFAULT/fixed_range': value => $fixed_range; + 'DEFAULT/flat_interface': value => $flat_interface; + 'DEFAULT/flat_network_bridge': value => $flat_network_bridge; + } + +}