From c7eebdb1c367bd1f9fe77317f3d47ba727835300 Mon Sep 17 00:00:00 2001 From: Matthias Bastian Date: Tue, 14 Aug 2018 17:30:10 +0200 Subject: [PATCH] Restart API also when run with Apache Restarting services only considers those with the "panko-service" tag. So add it to the Apache service. Change-Id: Ica16ce2adaef0617c687f9e8ac658b1082732c1f --- manifests/api.pp | 4 +++- releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml diff --git a/manifests/api.pp b/manifests/api.pp index bc992d6..152a078 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -136,7 +136,9 @@ class panko::api ( tag => ['panko-service', 'panko-db-sync-service'], } Class['panko::db'] -> Service[$service_name] - Service <| title == 'httpd' |> { tag +> 'panko-db-sync-service' } + Service <| title == 'httpd' |> { + tag +> ['panko-service', 'panko-db-sync-service'] + } # we need to make sure panko-api/eventlet is stopped before trying to start apache Service['panko-api'] -> Service[$service_name] diff --git a/releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml b/releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml new file mode 100644 index 0000000..ca19cfb --- /dev/null +++ b/releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - Deal with API being run using Apache when restarting the API (e.g. due to + configuration changes)