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
39
40
|
# File 'modules/openstack/manifests/neutron/linuxbridge_agent.pp', line 1
class openstack::neutron::linuxbridge_agent(
$version,
$report_interval,
$bridges={},
$bridge_mappings={},
$physical_interface_mappings={},
) {
class { "openstack::neutron::linuxbridge_agent::${version}":
report_interval => $report_interval,
physical_interface_mappings => $physical_interface_mappings,
bridge_mappings => $bridge_mappings,
}
include openstack::nova::compute::kmod
create_resources(openstack::neutron::bridge, $bridges)
file { '/etc/neutron/plugins/linuxbridge':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0744',
require => File['/etc/neutron/plugins/ml2/linuxbridge_agent.ini'],
}
file { '/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini':
ensure => 'link',
target => '/etc/neutron/plugins/ml2/linuxbridge_agent.ini',
require => File['/etc/neutron/plugins/linuxbridge'],
}
service {'neutron-linuxbridge-agent':
ensure => 'running',
require => Package['neutron-linuxbridge-agent'],
subscribe => [
File['/etc/neutron/neutron.conf'],
File['/etc/neutron/plugins/ml2/ml2_conf.ini'],
],
}
}
|