Fix notification related to api service
This is follow-up of fb448c80b567a6df7c6cef3e2494d1005a928be9 and fixes notifications to restart api service, which is currently broken for standalone api service. Change-Id: Ic907f3c59bb8a1174ff0d64a85faa7041d02298e
This commit is contained in:
parent
4d1bb57b75
commit
21361a4e21
@ -101,6 +101,11 @@ class aodh::api (
|
|||||||
hasrestart => true,
|
hasrestart => true,
|
||||||
tag => 'aodh-service',
|
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' {
|
} elsif $service_name == 'httpd' {
|
||||||
Service <| title == 'httpd' |> { tag +> 'aodh-service' }
|
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
|
# 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[$service_name]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# On any paste-api.ini config change, we must restart Aodh API.
|
||||||
|
Aodh_api_paste_ini<||> ~> Service[$service_name]
|
||||||
} else {
|
} else {
|
||||||
fail('Invalid service_name.')
|
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 {
|
aodh_config {
|
||||||
'api/gnocchi_external_project_owner': value => $gnocchi_external_project_owner;
|
'api/gnocchi_external_project_owner': value => $gnocchi_external_project_owner;
|
||||||
'api/gnocchi_external_domain_name': value => $gnocchi_external_domain_name;
|
'api/gnocchi_external_domain_name': value => $gnocchi_external_domain_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user