Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2014 22:07
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 anonymous/fbdaff3a1548f389dfec to your computer and use it in GitHub Desktop.
Save anonymous/fbdaff3a1548f389dfec to your computer and use it in GitHub Desktop.
rs-ismaster:
cmd:
- run
- name: python /tmp/.ismaster.py
- cwd: /tmp
- stateful: true
- require:
- file: /tmp/.ismaster.py
- cmd: rs-initiate
@gravyboat
Copy link

ismaster.py:
  file:
    - managed
    - name: /tmp/.ismaster.py
    - source: salt://ismaster/files/.ismaster.py

rsi-initiate:
  cmd:
    - run
    - name: ls -la
    - cwd: /tmp
    - require:
      - file /tmp/.ismaster.py

rs-ismaster:
  cmd:
    - run
    - name: python /tmp/.ismaster.py
    - cwd: /tmp
    - stateful: true
    - require:
      - cmd: rs-initiate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment