Puppet Class: openstack::heat::service::xena

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

Overview

Parameters:

  • db_user (String)
  • openstack_controllers (Array[Stdlib::Fqdn])
  • region (String)
  • db_pass (String)
  • db_name (String)
  • db_host (Stdlib::Fqdn)
  • ldap_user_pass (String)
  • keystone_admin_uri (String)
  • keystone_internal_uri (String)
  • api_bind_port (Stdlib::Port)
  • cfn_api_bind_port (Stdlib::Port)
  • rabbitmq_nodes (Array[Stdlib::Fqdn])
  • rabbit_user (String)
  • rabbit_pass (String)
  • auth_encryption_key (String[32])
  • domain_admin_pass (String)


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

class openstack::heat::service::xena(
    String $db_user,
    Array[Stdlib::Fqdn] $openstack_controllers,
    String $region,
    String $db_pass,
    String $db_name,
    Stdlib::Fqdn $db_host,
    String $ldap_user_pass,
    String $keystone_admin_uri,
    String $keystone_internal_uri,
    Stdlib::Port $api_bind_port,
    Stdlib::Port $cfn_api_bind_port,
    Array[Stdlib::Fqdn] $rabbitmq_nodes,
    String $rabbit_user,
    String $rabbit_pass,
    String[32] $auth_encryption_key,
    String $domain_admin_pass,
) {
    require "openstack::serverpackages::xena::${::lsbdistcodename}"

    package { 'heat-api':
        ensure => 'present',
    }
    package { 'heat-api-cfn':
        ensure => 'present',
    }
    package { 'heat-engine':
        ensure => 'present',
    }

    file {
        '/etc/heat/heat.conf':
            content   => template('openstack/xena/heat/heat.conf.erb'),
            owner     => 'heat',
            group     => 'heat',
            mode      => '0440',
            show_diff => false,
            notify    => Service['heat-api', 'heat-engine', 'heat-api-cfn'],
            require   => Package['heat-api', 'heat-engine', 'heat-api-cfn'];
        '/etc/heat/policy.yaml':
            source  => 'puppet:///modules/openstack/xena/heat/policy.yaml',
            owner   => 'root',
            group   => 'root',
            mode    => '0644',
            notify  => Service['heat-api', 'heat-engine', 'heat-api-cfn'],
            require => Package['heat-api', 'heat-engine', 'heat-api-cfn'];
        '/etc/init.d/heat-api':
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            content => template('openstack/xena/heat/heat-api.erb');
        '/etc/init.d/heat-api-cfn':
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            content => template('openstack/xena/heat/heat-api-cfn.erb');
    }
}