Created
March 1, 2012 16:23
-
-
Save thatch45/1950996 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
some_config: | |
file: | |
- managed | |
- source: salt://some_service/vtag | |
- require: # or require declaration | |
- file: /etc/some_service/conf_1.conf | |
- file: /etc/some_service/conf_2.conf | |
- file: /etc/some_service/conf_3.conf | |
some_service: | |
service: | |
- running | |
# if will changed some of some_config watchers OR tag | |
# service will be restarted | |
- watch: | |
- state: some_config | |
another_service: | |
service: | |
- running | |
# Service check running if all watch (or require) state in | |
# some_config and state file: /etc/another_service/conf.conf | |
# is true | |
- require: | |
- state: some_config | |
- file: /etc/another_service/conf.conf | |
# union rwo state service as one state | |
services_running: | |
state: | |
- present | |
- require: | |
- service: some_service | |
- service: another_service | |
do_come_think: | |
cmd: | |
- wait | |
- watch: | |
- state: services_running |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment