Merge "Combine BootstrapNodeDeployment with AllNodesDeployment"
[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   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   HeatEnableDBPurge:
13     type: boolean
14     default: true
15     description: |
16         Whether to create cron job for purging soft deleted rows in the Heat database.
17   HeatWorkers:
18     default: 0
19     description: Number of workers for Heat service.
20     type: number
21   HeatPassword:
22     description: The password for the Heat service and db account, used by the Heat services.
23     type: string
24     hidden: true
25   HeatStackDomainAdminPassword:
26     description: Password for heat_stack_domain_admin user.
27     type: string
28     hidden: true
29
30 resources:
31   HeatBase:
32     type: ./heat-base.yaml
33
34 outputs:
35   role_data:
36     description: Role data for the Heat Engine role.
37     value:
38       config_settings:
39         map_merge:
40           - get_attr: [HeatBase, role_data, config_settings]
41           - heat::engine::num_engine_workers: {get_param: HeatWorkers}
42             tripleo::profile::base::heat::manage_db_purge: {get_param: HeatEnableDBPurge}
43             heat::database_connection:
44               list_join:
45                 - ''
46                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
47                   - '://heat:'
48                   - {get_param: HeatPassword}
49                   - '@'
50                   - {get_param: [EndpointMap, MysqlInternal, host]}
51                   - '/heat'
52             heat::keystone_ec2_uri: {get_param: [EndpointMap, KeystoneEC2, uri]}
53             heat::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
54             heat::keystone_password: {get_param: HeatPassword}
55             heat::db::mysql::password: {get_param: HeatPassword}
56             heat::keystone::domain::domain_password: {get_param: HeatStackDomainAdminPassword}
57             heat::db::mysql::user: heat
58             heat::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host]}
59             heat::db::mysql::dbname: heat
60             heat::db::mysql::allowed_hosts:
61               - '%'
62               - "%{hiera('mysql_bind_host')}"
63       step_config: |
64         include ::tripleo::profile::base::heat::engine