]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/nova/manifests/network/flat.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / nova / manifests / network / flat.pp
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
29   if $public_interface {
30     nova_config { 'DEFAULT/public_interface': value => $public_interface }
31   }
32
33   nova_config {
34     'DEFAULT/network_manager':     value => 'nova.network.manager.FlatManager';
35     'DEFAULT/fixed_range':         value => $fixed_range;
36     'DEFAULT/flat_interface':      value => $flat_interface;
37     'DEFAULT/flat_network_bridge': value => $flat_network_bridge;
38   }
39
40 }