Pass ServiceNetMap to 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   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   HeatWorkers:
19     default: 0
20     description: Number of workers for Heat service.
21     type: number
22   HeatPassword:
23     description: The password for the Heat service and db account, used by the Heat services.
24     type: string
25     hidden: true
26   KeystoneRegion:
27     type: string
28     default: 'regionOne'
29     description: Keystone region for endpoint
30
31 resources:
32   HeatBase:
33     type: ./heat-base.yaml
34     properties:
35       ServiceNetMap: {get_param: ServiceNetMap}
36       EndpointMap: {get_param: EndpointMap}
37
38 outputs:
39   role_data:
40     description: Role data for the Heat API role.
41     value:
42       service_name: heat_api
43       config_settings:
44         map_merge:
45           - get_attr: [HeatBase, role_data, config_settings]
46           - heat::api::workers: {get_param: HeatWorkers}
47             heat::keystone::auth::tenant: 'service'
48             heat::keystone::auth::public_url: {get_param: [EndpointMap, HeatPublic, uri]}
49             heat::keystone::auth::internal_url: {get_param: [EndpointMap, HeatInternal, uri]}
50             heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
51             heat::keystone::auth::password: {get_param: HeatPassword}
52             heat::keystone::auth::region: {get_param: KeystoneRegion}
53             tripleo.heat_api.firewall_rules:
54               '125 heat_api':
55                 dport:
56                   - 8004
57                   - 13004
58       step_config: |
59         include ::tripleo::profile::base::heat::api