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
|
# File 'modules/openstack/manifests/placement/service/caracal.pp', line 3
class openstack::placement::service::caracal(
Array[Stdlib::Fqdn] $memcached_nodes,
$db_user,
$db_pass,
$db_name,
$db_host,
$ldap_user_pass,
$keystone_fqdn,
Stdlib::Port $api_bind_port,
) {
require "openstack::serverpackages::caracal::${::lsbdistcodename}"
package { 'placement-api':
ensure => 'present',
}
# Subtemplates of placement.conf are going to want to know what
# version this is
$version = inline_template("<%= @title.split(':')[-1] -%>")
$keystone_auth_username = 'novaadmin'
$keystone_auth_project = 'admin'
file {
'/etc/placement/placement.conf':
content => template('openstack/caracal/placement/placement.conf.erb'),
owner => 'placement',
group => 'nogroup',
mode => '0440',
show_diff => false,
notify => Service['placement-api'],
require => Package['placement-api'];
'/etc/placement/policy.yaml':
source => 'puppet:///modules/openstack/caracal/placement/policy.yaml',
owner => 'placement',
group => 'placement',
mode => '0644',
require => Package['placement-api'];
'/etc/init.d/placement-api':
content => template('openstack/caracal/placement/placement-api.erb'),
owner => 'root',
group => 'root',
mode => '0755',
notify => Service['placement-api'],
require => Package['placement-api'];
}
}
|