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