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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'modules/openstack/manifests/neutron/service/bobcat.pp', line 3
class openstack::neutron::service::bobcat(
Stdlib::Port $bind_port,
Boolean $active,
) {
# simple enough to don't require per-debian release split
require "openstack::serverpackages::bobcat::${::lsbdistcodename}"
service {'neutron-api':
ensure => $active,
require => Package['neutron-server', 'neutron-api'],
subscribe => [
File['/etc/neutron/neutron.conf'],
File['/etc/neutron/policy.yaml'],
File['/etc/neutron/plugins/ml2/ml2_conf.ini'],
],
}
service {'neutron-rpc-server':
ensure => $active,
require => Package['neutron-server'],
subscribe => [
File['/etc/neutron/neutron.conf'],
File['/etc/neutron/policy.yaml'],
File['/etc/neutron/plugins/ml2/ml2_conf.ini'],
],
}
package { 'neutron-api':
ensure => 'present',
}
package { 'neutron-server':
ensure => 'present',
}
file {
'/etc/init.d/neutron-api':
content => template('openstack/bobcat/neutron/neutron-api.erb'),
owner => 'root',
group => 'root',
mode => '0755',
notify => Service['neutron-api'],
require => Package['neutron-server', 'neutron-api'];
'/etc/neutron/neutron-api-uwsgi.ini':
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/openstack/bobcat/neutron/neutron-api-uwsgi.ini',
notify => Service['neutron-api'],
require => Package['neutron-server'];
'/etc/neutron/api-paste.ini':
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/openstack/bobcat/neutron/api-paste.ini',
notify => Service['neutron-api'],
require => Package['neutron-server'];
'/var/run/neutron/':
ensure => directory,
owner => 'neutron',
group => 'neutron',
mode => '0755';
}
}
|