diff --git a/manifests/api.pp b/manifests/api.pp index 9224afe0..c2958d05 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -124,7 +124,9 @@ release. aodh::wsgi::apache supports setting a port.') } # 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") diff --git a/releasenotes/notes/restart-apache-4c85888a2bafbaa8.yaml b/releasenotes/notes/restart-apache-4c85888a2bafbaa8.yaml new file mode 100644 index 00000000..ca19cfbe --- /dev/null +++ b/releasenotes/notes/restart-apache-4c85888a2bafbaa8.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - Deal with API being run using Apache when restarting the API (e.g. due to + configuration changes)