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
This commit is contained in:
Matthias Bastian 2018-08-14 17:30:10 +02:00
parent b2843fba85
commit c7eebdb1c3
2 changed files with 7 additions and 1 deletions

View File

@ -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]

View File

@ -0,0 +1,4 @@
---
fixes:
- Deal with API being run using Apache when restarting the API (e.g. due to
configuration changes)