This repository has been archived by the owner on Oct 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework configuration validation step
As suspected the handler can only run one task. To resolve that I have created a new handler which is notified in all the same places as the other configuration change handlers but run first to validate before a restart is performed.
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
--- | ||
- name: restart shinken arbiter | ||
- name: Validate configuration | ||
# Service command can't be used as it doesn't support 'check' | ||
command: service shinken check | ||
|
||
- name: restart shinken arbiter | ||
service: name=shinken-arbiter state=restarted | ||
|
||
- name: restart shinken broker | ||
command: service shinken check | ||
service: name=shinken-broker state=restarted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters