Skip to content

Instantly share code, notes, and snippets.

@fneves-datalex
Created June 10, 2014 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fneves-datalex/8d513635d48ba8bb4605 to your computer and use it in GitHub Desktop.
Save fneves-datalex/8d513635d48ba8bb4605 to your computer and use it in GitHub Desktop.
salt dependency between sibling states
resource_available:
health_check.wait_for_url:
- timeout: 10 #this is in seconds
- url: {{ pillar['resource_url'] }}
version_file:
file.managed:
- name: {{ pillar['filename'] }}
- user: {{ pillar['username'] }}
- group: {{ pillar['group'] }}
- mode: {{ pillar['mode'] }}
- makedirs: True
- contents: |
version: some version
hash: some hash
- require:
- pkg: resource_available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment