Merge "composable heat services"
[apex-tripleo-heat-templates.git] / puppet / services / heat-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Openstack Heat API 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   MysqlVirtualIPUri:
13     type: string
14     default: ''
15   HeatWorkers:
16     default: 0
17     description: Number of workers for Heat service.
18     type: number
19   HeatPassword:
20     description: The password for the Heat service and db account, used by the Heat services.
21     type: string
22     hidden: true
23   KeystoneRegion:
24     type: string
25     default: 'regionOne'
26     description: Keystone region for endpoint
27
28 resources:
29   HeatBase:
30     type: ./heat-base.yaml
31
32 outputs:
33   role_data:
34     description: Role data for the Heat API role.
35     value:
36       config_settings:
37         map_merge:
38           - get_attr: [HeatBase, role_data, config_settings]
39           - heat::api::workers: {get_param: HeatWorkers}
40             heat::keystone::auth::public_url: {get_param: [EndpointMap, HeatPublic, uri]}
41             heat::keystone::auth::internal_url: {get_param: [EndpointMap, HeatInternal, uri]}
42             heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
43             heat::keystone::auth::password: {get_param: HeatPassword}
44             heat::keystone::auth::region: {get_param: KeystoneRegion}
45       step_config: |
46         include ::tripleo::profile::base::heat::api