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:
parent
aed49310c8
commit
f10256ae3e
@ -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")
|
||||
|
@ -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")
|
||||
|
4
releasenotes/notes/restart-apache-fa203227fefc67f8.yaml
Normal file
4
releasenotes/notes/restart-apache-fa203227fefc67f8.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- Deal with API being run using Apache when restarting the API (e.g. due to
|
||||
configuration changes)
|
Loading…
Reference in New Issue
Block a user