Puppet Class: openstack::placement::service::xena

Defined in:
modules/openstack/manifests/placement/service/xena.pp

Overview

Parameters:

  • openstack_controllers (Any)
  • db_user (Any)
  • db_pass (Any)
  • db_name (Any)
  • db_host (Any)
  • ldap_user_pass (Any)
  • keystone_admin_uri (Any)
  • keystone_public_uri (Any)
  • api_bind_port (Stdlib::Port)


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
# File 'modules/openstack/manifests/placement/service/xena.pp', line 3

class openstack::placement::service::xena(
    $openstack_controllers,
    $db_user,
    $db_pass,
    $db_name,
    $db_host,
    $ldap_user_pass,
    $keystone_admin_uri,
    $keystone_public_uri,
    Stdlib::Port $api_bind_port,
) {
    require "openstack::serverpackages::xena::${::lsbdistcodename}"

    package { 'placement-api':
        ensure => 'present',
    }

    file {
        '/etc/placement/placement.conf':
            content   => template('openstack/xena/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/xena/placement/policy.yaml',
            owner   => 'placement',
            group   => 'placement',
            mode    => '0644',
            require => Package['placement-api'];
        '/etc/init.d/placement-api':
            content => template('openstack/xena/placement/placement-api.erb'),
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            notify  => Service['placement-api'],
            require => Package['placement-api'];
    }
}