Merge "Adding optional aci-opflex hiera data"
[apex-tripleo-heat-templates.git] / puppet / services / heat-engine.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Openstack Heat Engine service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   HeatEnableDBPurge:
22     type: boolean
23     default: true
24     description: |
25         Whether to create cron job for purging soft deleted rows in the Heat database.
26   HeatWorkers:
27     default: 0
28     description: Number of workers for Heat service.
29     type: number
30   HeatPassword:
31     description: The password for the Heat service and db account, used by the Heat services.
32     type: string
33     hidden: true
34   HeatStackDomainAdminPassword:
35     description: Password for heat_stack_domain_admin user.
36     type: string
37     hidden: true
38
39 resources:
40   HeatBase:
41     type: ./heat-base.yaml
42     properties:
43       ServiceNetMap: {get_param: ServiceNetMap}
44       DefaultPasswords: {get_param: DefaultPasswords}
45       EndpointMap: {get_param: EndpointMap}
46
47 outputs:
48   role_data:
49     description: Role data for the Heat Engine role.
50     value:
51       service_name: heat_engine
52       config_settings:
53         map_merge:
54           - get_attr: [HeatBase, role_data, config_settings]
55           - heat::engine::num_engine_workers: {get_param: HeatWorkers}
56             heat::engine::configure_delegated_roles: false
57             heat::engine::trusts_delegated_roles: []
58             tripleo::profile::base::heat::manage_db_purge: {get_param: HeatEnableDBPurge}
59             heat::database_connection:
60               list_join:
61                 - ''
62                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
63                   - '://heat:'
64                   - {get_param: HeatPassword}
65                   - '@'
66                   - {get_param: [EndpointMap, MysqlInternal, host]}
67                   - '/heat'
68             heat::keystone_ec2_uri: {get_param: [EndpointMap, KeystoneEC2, uri]}
69             heat::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
70             heat::keystone_password: {get_param: HeatPassword}
71             heat::db::mysql::password: {get_param: HeatPassword}
72             heat::keystone::domain::domain_password: {get_param: HeatStackDomainAdminPassword}
73             heat::db::mysql::user: heat
74             heat::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
75             heat::db::mysql::dbname: heat
76             heat::db::mysql::allowed_hosts:
77               - '%'
78               - "%{hiera('mysql_bind_host')}"
79       step_config: |
80         include ::tripleo::profile::base::heat::engine