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