Notify not only heat-api service but also apache

Not only the heat-api and heat-api-cfn services are notified, but also
the apache service if the API is run using apache. This ensures apache
is restarted on config changes.

Change-Id: I68feb50a466b56b027573cda099191f6b26ddbfd
This commit is contained in:
Andreas Jaekel 2018-07-10 17:55:37 +02:00
parent aed49310c8
commit f10256ae3e
3 changed files with 10 additions and 2 deletions

View File

@ -115,7 +115,9 @@ class heat::api (
}
# we need to make sure heat-api/eventlet is stopped before trying to start apache
Service['heat-api'] -> Service[$service_name]
Service['heat-api'] -> Service[$::apache::params::service_name]
# the apache service is untagged so add it to the service section manually
Anchor['heat::service::begin'] ~> Service[$::apache::params::service_name]
} else {
fail("Invalid service_name. Either heat-api/openstack-heat-api for \
running as a standalone service, or httpd for being run by a httpd server")

View File

@ -118,7 +118,9 @@ class heat::api_cfn (
}
# we need to make sure heat-api-cfn/eventlet is stopped before trying to start apache
Service['heat-api-cfn'] -> Service[$service_name]
Service['heat-api-cfn'] -> Service[$::apache::params::service_name]
# the apache service is untagged so add it to the service section manually
Anchor['heat::service::begin'] ~> Service[$::apache::params::service_name]
} else {
fail("Invalid service_name. Either heat-api-cfn/openstack-heat-api-cfn for \
running as a standalone service, or httpd for being run by a httpd server")

View File

@ -0,0 +1,4 @@
---
fixes:
- Deal with API being run using Apache when restarting the API (e.g. due to
configuration changes)