Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / services / heat-api.yaml
1 heat_template_version: ocata
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   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   HeatWorkers:
22     default: 0
23     description: Number of workers for Heat service.
24     type: number
25   HeatPassword:
26     description: The password for the Heat service and db account, used by the Heat services.
27     type: string
28     hidden: true
29   KeystoneRegion:
30     type: string
31     default: 'regionOne'
32     description: Keystone region for endpoint
33   MonitoringSubscriptionHeatApi:
34     default: 'overcloud-heat-api'
35     type: string
36   HeatApiLoggingSource:
37     type: json
38     default:
39       tag: openstack.heat.api
40       path: /var/log/heat/heat-api.log
41
42 resources:
43   HeatBase:
44     type: ./heat-base.yaml
45     properties:
46       ServiceNetMap: {get_param: ServiceNetMap}
47       DefaultPasswords: {get_param: DefaultPasswords}
48       EndpointMap: {get_param: EndpointMap}
49
50 outputs:
51   role_data:
52     description: Role data for the Heat API role.
53     value:
54       service_name: heat_api
55       monitoring_subscription: {get_param: MonitoringSubscriptionHeatApi}
56       logging_source: {get_param: HeatApiLoggingSource}
57       logging_groups:
58         - heat
59       config_settings:
60         map_merge:
61           - get_attr: [HeatBase, role_data, config_settings]
62           - heat::api::workers: {get_param: HeatWorkers}
63             tripleo.heat_api.firewall_rules:
64               '125 heat_api':
65                 dport:
66                   - 8004
67                   - 13004
68             # NOTE: bind IP is found in Heat replacing the network name with the
69             # local node IP for the given network; replacement examples
70             # (eg. for internal_api):
71             # internal_api -> IP
72             # internal_api_uri -> [IP]
73             # internal_api_subnet - > IP/CIDR
74             heat::api::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
75       step_config: |
76         include ::tripleo::profile::base::heat::api
77       service_config_settings:
78         keystone:
79           map_merge:
80             - get_attr: [HeatBase, role_data, service_config_settings, keystone]
81             - heat::keystone::auth::tenant: 'service'
82               heat::keystone::auth::public_url: {get_param: [EndpointMap, HeatPublic, uri]}
83               heat::keystone::auth::internal_url: {get_param: [EndpointMap, HeatInternal, uri]}
84               heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
85               heat::keystone::auth::password: {get_param: HeatPassword}
86               heat::keystone::auth::region: {get_param: KeystoneRegion}