1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'manifests/neutron/agent/l3.pp', line 1
class kickstack::neutron::agent::l3 inherits kickstack {
include kickstack::neutron::config
$external_bridge = $::kickstack::neutron_external_bridge
vs_bridge { $external_bridge:
ensure => present,
}
vs_port { $::kickstack::nic_external:
ensure => present,
bridge => $external_bridge,
}
class { "::neutron::agents::l3":
debug => $::kickstack::debug,
interface_driver => $::kickstack::neutron_plugin ? {
'ovs' => 'neutron.agent.linux.interface.OVSInterfaceDriver',
'linuxbridge' => 'neutron.agent.linux.interface.BridgeInterfaceDriver'
},
external_network_bridge => $::kickstack::neutron_external_bridge,
use_namespaces => $::kickstack::neutron_network_type ? {
'per-tenant-router' => true,
default => false
},
router_id => $::kickstack::neutron_network_type ? {
'provider-router' => "$::kickstack::neutron_router_id",
default => undef
},
gateway_external_network_id => $::kickstack::neutron_network_type ? {
'provider-router' => "$::kickstack::neutron_gateway_external_network_id",
default => undef
},
package_ensure => $::kickstack::package_version,
require => Vs_bridge[$external_bridge],
}
}
|