Merge "Availability monitoring agents support"
[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   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   MonitoringSubscriptionHeatApiCnf:
34     default: 'overcloud-heat-api-cfn'
35     type: string
36
37 resources:
38   HeatBase:
39     type: ./heat-base.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44
45 outputs:
46   role_data:
47     description: Role data for the Heat CloudFormation API role.
48     value:
49       service_name: heat_api_cfn
50       monitoring_subscription: {get_param: MonitoringSubscriptionHeatApiCnf}
51       config_settings:
52         map_merge:
53           - get_attr: [HeatBase, role_data, config_settings]
54           - heat::api_cfn::workers: {get_param: HeatWorkers}
55             heat::keystone::auth_cfn::tenant: 'service'
56             heat::keystone::auth_cfn::public_url: {get_param: [EndpointMap, HeatCfnPublic, uri]}
57             heat::keystone::auth_cfn::internal_url: {get_param: [EndpointMap, HeatCfnInternal, uri]}
58             heat::keystone::auth_cfn::admin_url: {get_param: [EndpointMap, HeatCfnAdmin, uri]}
59             heat::keystone::auth_cfn::password: {get_param: HeatPassword}
60             heat::keystone::auth::region: {get_param: KeystoneRegion}
61             tripleo.heat_api_cfn.firewall_rules:
62               '125 heat_cfn':
63                 dport:
64                   - 8000
65                   - 13800
66             # NOTE: bind IP is found in Heat replacing the network name with the
67             # local node IP for the given network; replacement examples
68             # (eg. for internal_api):
69             # internal_api -> IP
70             # internal_api_uri -> [IP]
71             # internal_api_subnet - > IP/CIDR
72             heat::api_cfn::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
73       step_config: |
74         include ::tripleo::profile::base::heat::api_cfn