Created
March 17, 2016 15:01
-
-
Save anonymous/04bd82336f0d35f0dcf4 to your computer and use it in GitHub Desktop.
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
httpd: | |
local.cmd.run: | |
- name: salt/beacon/minion7-01.cook.book/service/ | |
- tgt: {{ data['data']['id'] }} | |
{% if data['data']['httpd']['running'] == True %} | |
- arg: | |
- 'echo "SERVICE HTTPD IS UP == {{ data['data']['httpd']['running'] }} =="' | |
{% else %} | |
- arg: | |
- 'echo "SERVICE IS DOWN" && service httpd start' | |
{% endif %} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment