1 heat_template_version: pike
4 Openstack Heat CloudWatch 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.
37 MonitoringSubscriptionHeatApiCloudwatch:
38 default: 'overcloud-heat-api-cloudwatch'
40 HeatApiCloudwatchLoggingSource:
43 tag: openstack.heat.api.cloudwatch
44 path: /var/log/heat/heat-api-cloudwatch.log
50 heat_workers_zero: {equals : [{get_param: HeatWorkers}, 0]}
57 ServiceData: {get_param: ServiceData}
58 ServiceNetMap: {get_param: ServiceNetMap}
59 DefaultPasswords: {get_param: DefaultPasswords}
60 EndpointMap: {get_param: EndpointMap}
61 RoleName: {get_param: RoleName}
62 RoleParameters: {get_param: RoleParameters}
63 EnableInternalTLS: {get_param: EnableInternalTLS}
66 type: ./heat-base.yaml
68 ServiceData: {get_param: ServiceData}
69 ServiceNetMap: {get_param: ServiceNetMap}
70 DefaultPasswords: {get_param: DefaultPasswords}
71 EndpointMap: {get_param: EndpointMap}
72 RoleName: {get_param: RoleName}
73 RoleParameters: {get_param: RoleParameters}
77 description: Role data for the Heat Cloudwatch API role.
79 service_name: heat_api_cloudwatch
80 monitoring_subscription: {get_param: MonitoringSubscriptionHeatApiCloudwatch}
81 logging_source: {get_param: HeatApiCloudwatchLoggingSource}
86 - get_attr: [HeatBase, role_data, config_settings]
87 - get_attr: [ApacheServiceBase, role_data, config_settings]
88 - tripleo.heat_api_cloudwatch.firewall_rules:
89 '125 heat_cloudwatch':
93 heat::api_cloudwatch::bind_host:
94 get_param: [ServiceNetMap, HeatApiCloudwatchNetwork]
95 heat::wsgi::apache_api_cloudwatch::ssl: {get_param: EnableInternalTLS}
96 heat::api_cloudwatch::service_name: 'httpd'
97 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
98 # for the given network; replacement examples (eg. for internal_api):
100 # internal_api_uri -> [IP]
101 # internal_api_subnet - > IP/CIDR
102 heat::wsgi::apache_api_cloudwatch::bind_host:
103 get_param: [ServiceNetMap, HeatApiCloudwatchNetwork]
104 heat::wsgi::apache_api_cloudwatch::servername:
107 "%{hiera('fqdn_$NETWORK')}"
109 $NETWORK: {get_param: [ServiceNetMap, HeatApiCloudwatchNetwork]}
114 - heat::wsgi::apache_api_cloudwatch::workers: {get_param: HeatWorkers}
116 include ::tripleo::profile::base::heat::api_cloudwatch
118 - name: Check if heat_api_cloudwatch is deployed
119 command: systemctl is-enabled openstack-heat-api-cloudwatch
122 register: heat_api_cloudwatch_enabled
123 - name: "PreUpgrade step0,validation: Check service openstack-heat-api-cloudwatch is running"
124 shell: /usr/bin/systemctl show 'openstack-heat-api-cloudwatch' --property ActiveState | grep '\bactive\b'
125 when: heat_api_cloudwatch_enabled.rc == 0
126 tags: step0,validation
127 - name: check for heat_api_cloudwatch running under apache (post upgrade)
129 shell: "httpd -t -D DUMP_VHOSTS | grep -q heat_api_cloudwatch_wsgi"
130 register: heat_api_cloudwatch_apache
132 - name: Stop heat_api_cloudwatch service (running under httpd)
134 service: name=httpd state=stopped
135 when: heat_api_cloudwatch_apache.rc == 0
136 - name: Stop and disable heat_api_cloudwatch service (pre-upgrade not under httpd)
138 when: heat_api_cloudwatch_enabled.rc == 0
139 service: name=openstack-heat-api-cloudwatch state=stopped enabled=no