1 heat_template_version: pike
4 Openstack Heat CloudFormation API service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
35 description: Number of workers for Heat service.
38 description: The password for the Heat service and db account, used by the Heat services.
44 description: Keystone region for endpoint
45 MonitoringSubscriptionHeatApiCnf:
46 default: 'overcloud-heat-api-cfn'
48 HeatApiCfnLoggingSource:
51 tag: openstack.heat.api.cfn
52 path: /var/log/heat/heat-api-cfn.log
58 heat_workers_zero: {equals : [{get_param: HeatWorkers}, 0]}
65 ServiceData: {get_param: ServiceData}
66 ServiceNetMap: {get_param: ServiceNetMap}
67 DefaultPasswords: {get_param: DefaultPasswords}
68 EndpointMap: {get_param: EndpointMap}
69 RoleName: {get_param: RoleName}
70 RoleParameters: {get_param: RoleParameters}
71 EnableInternalTLS: {get_param: EnableInternalTLS}
74 type: ./heat-base.yaml
76 ServiceData: {get_param: ServiceData}
77 ServiceNetMap: {get_param: ServiceNetMap}
78 DefaultPasswords: {get_param: DefaultPasswords}
79 EndpointMap: {get_param: EndpointMap}
80 RoleName: {get_param: RoleName}
81 RoleParameters: {get_param: RoleParameters}
85 description: Role data for the Heat CloudFormation API role.
87 service_name: heat_api_cfn
88 monitoring_subscription: {get_param: MonitoringSubscriptionHeatApiCnf}
89 logging_source: {get_param: HeatApiCfnLoggingSource}
94 - get_attr: [HeatBase, role_data, config_settings]
95 - get_attr: [ApacheServiceBase, role_data, config_settings]
96 - tripleo.heat_api_cfn.firewall_rules:
101 heat::api_cfn::bind_host: {get_param: [ServiceNetMap, HeatApiCfnNetwork]}
102 heat::wsgi::apache_api_cfn::ssl: {get_param: EnableInternalTLS}
103 heat::api_cfn::service_name: 'httpd'
104 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
105 # for the given network; replacement examples (eg. for internal_api):
107 # internal_api_uri -> [IP]
108 # internal_api_subnet - > IP/CIDR
109 heat::wsgi::apache_api_cfn::bind_host: {get_param: [ServiceNetMap, HeatApiCfnNetwork]}
110 heat::wsgi::apache_api_cfn::servername:
113 "%{hiera('fqdn_$NETWORK')}"
115 $NETWORK: {get_param: [ServiceNetMap, HeatApiCfnNetwork]}
120 - heat::wsgi::apache_api_cfn::workers: {get_param: HeatWorkers}
122 include ::tripleo::profile::base::heat::api_cfn
123 service_config_settings:
126 - get_attr: [HeatBase, role_data, service_config_settings, keystone]
127 - heat::keystone::auth_cfn::tenant: 'service'
128 heat::keystone::auth_cfn::public_url: {get_param: [EndpointMap, HeatCfnPublic, uri]}
129 heat::keystone::auth_cfn::internal_url: {get_param: [EndpointMap, HeatCfnInternal, uri]}
130 heat::keystone::auth_cfn::admin_url: {get_param: [EndpointMap, HeatCfnAdmin, uri]}
131 heat::keystone::auth_cfn::password: {get_param: HeatPassword}
132 heat::keystone::auth_cfn::region: {get_param: KeystoneRegion}
134 - name: Check if heat_api_cfn is deployed
135 command: systemctl is-enabled openstack-heat-api-cfn
138 register: heat_api_cfn_enabled
139 - name: "PreUpgrade step0,validation: Check service openstack-heat-api-cfn is running"
140 shell: /usr/bin/systemctl show 'openstack-heat-api-cfn' --property ActiveState | grep '\bactive\b'
141 when: heat_api_cfn_enabled.rc == 0
142 tags: step0,validation
143 - name: check for heat_api_cfn running under apache (post upgrade)
145 shell: "httpd -t -D DUMP_VHOSTS | grep -q heat_api_cfn_wsgi"
146 register: heat_api_cfn_apache
148 - name: Stop heat_api_cfn service (running under httpd)
150 service: name=httpd state=stopped
151 when: heat_api_cfn_apache.rc == 0
152 - name: Stop and disable heat_api_cfn service (pre-upgrade not under httpd)
154 when: heat_api_cfn_apache.rc == 0
155 service: name=openstack-heat-api-cfn state=stopped enabled=no