Notify not only aodh-api service but also apache
Not only the aodh-api service is notified but also the apache service if the API is run using apache. This ensures apache is restarted on config changes. Change-Id: I3967584431c547c2431c9b614de9db6416169567
This commit is contained in:
parent
1143576ea7
commit
4df9382252
|
@ -112,7 +112,9 @@ class aodh::api (
|
||||||
}
|
}
|
||||||
|
|
||||||
# we need to make sure aodh-api/eventlet is stopped before trying to start apache
|
# we need to make sure aodh-api/eventlet is stopped before trying to start apache
|
||||||
Service['aodh-api'] -> Service[$service_name]
|
Service['aodh-api'] -> Service[$::apache::params::service_name]
|
||||||
|
# the apache service is untagged so add it to the service section manually
|
||||||
|
Anchor['aodh::service::begin'] ~> Service[$::apache::params::service_name]
|
||||||
} else {
|
} else {
|
||||||
fail("Invalid service_name. Either aodh/openstack-aodh-api for running \
|
fail("Invalid service_name. Either aodh/openstack-aodh-api for running \
|
||||||
as a standalone service, or httpd for being run by a httpd server")
|
as a standalone service, or httpd for being run by a httpd server")
|
||||||
|
|
|
@ -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