0bb208d1fd93a08f442cd0f5769faba3bbb66be3
[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   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 API role.
32     value:
33       service_name: heat-api
34       config_settings:
35         map_merge:
36           - get_attr: [HeatBase, role_data, config_settings]
37           - heat::api::workers: {get_param: HeatWorkers}
38             heat::keystone::auth::public_url: {get_param: [EndpointMap, HeatPublic, uri]}
39             heat::keystone::auth::internal_url: {get_param: [EndpointMap, HeatInternal, uri]}
40             heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
41             heat::keystone::auth::password: {get_param: HeatPassword}
42             heat::keystone::auth::region: {get_param: KeystoneRegion}
43             tripleo.heat_api.firewall_rules:
44               '125 heat_api':
45                 dport:
46                   - 8004
47                   - 13004
48       step_config: |
49         include ::tripleo::profile::base::heat::api