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:
Matthias Bastian 2018-07-06 14:14:44 +02:00
parent 1143576ea7
commit 4df9382252
2 changed files with 7 additions and 1 deletions

View File

@ -112,7 +112,9 @@ class aodh::api (
}
# 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 {
fail("Invalid service_name. Either aodh/openstack-aodh-api 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)