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