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 A hash of policies to configure for Heat API.
47 e.g. { heat-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
52 heat_workers_zero: {equals : [{get_param: HeatWorkers}, 0]}
59 ServiceNetMap: {get_param: ServiceNetMap}
60 DefaultPasswords: {get_param: DefaultPasswords}
61 EndpointMap: {get_param: EndpointMap}
62 EnableInternalTLS: {get_param: EnableInternalTLS}
65 type: ./heat-base.yaml
67 ServiceNetMap: {get_param: ServiceNetMap}
68 DefaultPasswords: {get_param: DefaultPasswords}
69 EndpointMap: {get_param: EndpointMap}
73 description: Role data for the Heat API role.
75 service_name: heat_api
76 monitoring_subscription: {get_param: MonitoringSubscriptionHeatApi}
77 logging_source: {get_param: HeatApiLoggingSource}
82 - get_attr: [HeatBase, role_data, config_settings]
83 - get_attr: [ApacheServiceBase, role_data, config_settings]
84 - tripleo.heat_api.firewall_rules:
89 heat::api::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
90 heat::wsgi::apache_api::ssl: {get_param: EnableInternalTLS}
91 heat::policy::policies: {get_param: HeatApiPolicies}
92 heat::api::service_name: 'httpd'
93 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
94 # for the given network; replacement examples (eg. for internal_api):
96 # internal_api_uri -> [IP]
97 # internal_api_subnet - > IP/CIDR
98 heat::wsgi::apache_api::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
99 heat::wsgi::apache_api::servername:
102 "%{hiera('fqdn_$NETWORK')}"
104 $NETWORK: {get_param: [ServiceNetMap, HeatApiNetwork]}
109 - heat::wsgi::apache_api::workers: {get_param: HeatWorkers}
111 include ::tripleo::profile::base::heat::api
112 service_config_settings:
115 - get_attr: [HeatBase, role_data, service_config_settings, keystone]
116 - heat::keystone::auth::tenant: 'service'
117 heat::keystone::auth::public_url: {get_param: [EndpointMap, HeatPublic, uri]}
118 heat::keystone::auth::internal_url: {get_param: [EndpointMap, HeatInternal, uri]}
119 heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
120 heat::keystone::auth::password: {get_param: HeatPassword}
121 heat::keystone::auth::region: {get_param: KeystoneRegion}
123 - name: Check is heat_api is deployed
124 command: systemctl is-enabled openstack-heat-api
127 register: heat_api_enabled
128 - name: "PreUpgrade step0,validation: Check service openstack-heat-api is running"
129 shell: /usr/bin/systemctl show 'openstack-heat-api' --property ActiveState | grep '\bactive\b'
130 when: heat_api_enabled.rc == 0
131 tags: step0,validation
132 - name: check for heat_api running under apache (post upgrade)
134 shell: "httpd -t -D DUMP_VHOSTS | grep -q heat_api_wsgi"
135 register: heat_api_apache
137 - name: Stop heat_api service (running under httpd)
139 service: name=httpd state=stopped
140 when: heat_api_apache.rc == 0
141 - name: Stop and disable heat_api service (pre-upgrade not under httpd)
143 when: heat_api_enabled.rc == 0
144 service: name=openstack-heat-api state=stopped enabled=no