2fd018853a815701546dc8d19450ea7535054d18
[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       service_name: heat-engine
39       config_settings:
40         map_merge:
41           - get_attr: [HeatBase, role_data, config_settings]
42           - heat::engine::num_engine_workers: {get_param: HeatWorkers}
43             tripleo::profile::base::heat::manage_db_purge: {get_param: HeatEnableDBPurge}
44             heat::database_connection:
45               list_join:
46                 - ''
47                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
48                   - '://heat:'
49                   - {get_param: HeatPassword}
50                   - '@'
51                   - {get_param: [EndpointMap, MysqlInternal, host]}
52                   - '/heat'
53             heat::keystone_ec2_uri: {get_param: [EndpointMap, KeystoneEC2, uri]}
54             heat::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
55             heat::keystone_password: {get_param: HeatPassword}
56             heat::db::mysql::password: {get_param: HeatPassword}
57             heat::keystone::domain::domain_password: {get_param: HeatStackDomainAdminPassword}
58             heat::db::mysql::user: heat
59             heat::db::mysql::host: {get_param: [EndpointMap, MysqlNoBracketsInternal, host]}
60             heat::db::mysql::dbname: heat
61             heat::db::mysql::allowed_hosts:
62               - '%'
63               - "%{hiera('mysql_bind_host')}"
64       step_config: |
65         include ::tripleo::profile::base::heat::engine