Puppet Class: openstack::heat::service::caracal

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

Overview

Parameters:

  • db_user (String)
  • memcached_nodes (Array[Stdlib::Fqdn])
  • region (String)
  • db_pass (String)
  • db_name (String)
  • db_host (Stdlib::Fqdn)
  • ldap_user_pass (String)
  • keystone_fqdn (Stdlib::Fqdn)
  • 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)
  • enforce_policy_scope (Boolean)
  • enforce_new_policy_defaults (Boolean)


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

class openstack::heat::service::caracal(
    String $db_user,
    Array[Stdlib::Fqdn] $memcached_nodes,
    String $region,
    String $db_pass,
    String $db_name,
    Stdlib::Fqdn $db_host,
    String $ldap_user_pass,
    Stdlib::Fqdn $keystone_fqdn,
    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,
    Boolean $enforce_policy_scope,
    Boolean $enforce_new_policy_defaults,
) {
    require "openstack::serverpackages::caracal::${::lsbdistcodename}"

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

    $version = inline_template("<%= @title.split(':')[-1] -%>")
    $keystone_auth_username = 'heat'
    $keystone_auth_project = 'service'
    file {
        '/etc/heat/heat.conf':
            content   => template('openstack/caracal/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/caracal/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/caracal/heat/heat-api.erb');
        '/etc/init.d/heat-api-cfn':
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            content => template('openstack/caracal/heat/heat-api-cfn.erb');
    }
}