Fix notification related to api service

This is follow-up of fb448c80b5 and
fixes notifications to restart api service, which is currently broken
for standalone api service.

Change-Id: Ic907f3c59bb8a1174ff0d64a85faa7041d02298e
This commit is contained in:
Takashi Kajinami 2024-02-17 14:47:48 +09:00
parent 4d1bb57b75
commit 21361a4e21

View File

@ -101,6 +101,11 @@ class aodh::api (
hasrestart => true,
tag => 'aodh-service',
}
# On any paste-api.ini config change, we must restart Aodh API.
Aodh_api_paste_ini<||> ~> Service['aodh-api']
# On any uwsgi config change, we must restart Aodh API.
Aodh_api_uwsgi_config<||> ~> Service['aodh-api']
} elsif $service_name == 'httpd' {
Service <| title == 'httpd' |> { tag +> 'aodh-service' }
@ -114,16 +119,14 @@ class aodh::api (
# we need to make sure aodh-api/eventlet is stopped before trying to start apache
Service['aodh-api'] -> Service[$service_name]
}
# On any paste-api.ini config change, we must restart Aodh API.
Aodh_api_paste_ini<||> ~> Service[$service_name]
} else {
fail('Invalid service_name.')
}
}
# On any paste-api.ini config change, we must restart Aodh API.
Aodh_api_paste_ini<||> ~> Service[$service_name]
# On any uwsgi config change, we must restart Aodh API.
Aodh_api_uwsgi_config<||> ~> Service[$service_name]
aodh_config {
'api/gnocchi_external_project_owner': value => $gnocchi_external_project_owner;
'api/gnocchi_external_domain_name': value => $gnocchi_external_domain_name;