1 heat_template_version: ocata
4 Openstack Heat API service configured with Puppet
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.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
23 description: Number of workers for Heat service.
26 description: The password for the Heat service and db account, used by the Heat services.
32 description: Keystone region for endpoint
33 MonitoringSubscriptionHeatApi:
34 default: 'overcloud-heat-api'
39 tag: openstack.heat.api
40 path: /var/log/heat/heat-api.log
46 heat_workers_zero: {equals : [{get_param: HeatWorkers}, 0]}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 EndpointMap: {get_param: EndpointMap}
56 EnableInternalTLS: {get_param: EnableInternalTLS}
59 type: ./heat-base.yaml
61 ServiceNetMap: {get_param: ServiceNetMap}
62 DefaultPasswords: {get_param: DefaultPasswords}
63 EndpointMap: {get_param: EndpointMap}
67 description: Role data for the Heat API role.
69 service_name: heat_api
70 monitoring_subscription: {get_param: MonitoringSubscriptionHeatApi}
71 logging_source: {get_param: HeatApiLoggingSource}
76 - get_attr: [HeatBase, role_data, config_settings]
77 - get_attr: [ApacheServiceBase, role_data, config_settings]
78 - tripleo.heat_api.firewall_rules:
83 heat::api::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
84 heat::wsgi::apache_api::ssl: {get_param: EnableInternalTLS}
85 heat::api::service_name: 'httpd'
86 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
87 # for the given network; replacement examples (eg. for internal_api):
89 # internal_api_uri -> [IP]
90 # internal_api_subnet - > IP/CIDR
91 heat::wsgi::apache_api::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
92 heat::wsgi::apache_api::servername:
95 "%{hiera('fqdn_$NETWORK')}"
97 $NETWORK: {get_param: [ServiceNetMap, HeatApiNetwork]}
102 - heat::wsgi::apache_api::workers: {get_param: HeatWorkers}
104 include ::tripleo::profile::base::heat::api
105 service_config_settings:
108 - get_attr: [HeatBase, role_data, service_config_settings, keystone]
109 - heat::keystone::auth::tenant: 'service'
110 heat::keystone::auth::public_url: {get_param: [EndpointMap, HeatPublic, uri]}
111 heat::keystone::auth::internal_url: {get_param: [EndpointMap, HeatInternal, uri]}
112 heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
113 heat::keystone::auth::password: {get_param: HeatPassword}
114 heat::keystone::auth::region: {get_param: KeystoneRegion}
116 - name: Check is heat_api is deployed
117 command: systemctl is-enabled openstack-heat-api
120 register: heat_api_enabled
121 - name: "PreUpgrade step0,validation: Check service openstack-heat-api is running"
122 shell: /usr/bin/systemctl show 'openstack-heat-api' --property ActiveState | grep '\bactive\b'
123 when: heat_api_enabled.rc == 0
124 tags: step0,validation
125 - name: check for heat_api running under apache (post upgrade)
127 shell: "httpd -t -D DUMP_VHOSTS | grep -q heat_api_wsgi"
128 register: heat_api_apache
130 - name: Stop heat_api service (running under httpd)
132 service: name=httpd state=stopped
133 when: heat_api_apache.rc == 0
134 - name: Stop and disable heat_api service (pre-upgrade not under httpd)
136 when: heat_api_enabled.rc == 0
137 service: name=openstack-heat-api state=stopped enabled=no