Skip to content

Instantly share code, notes, and snippets.

@thatch45
Created March 1, 2012 16:23
Show Gist options
  • Save thatch45/1950996 to your computer and use it in GitHub Desktop.
Save thatch45/1950996 to your computer and use it in GitHub Desktop.
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