Skip to content

Instantly share code, notes, and snippets.

@iggy
Last active August 29, 2015 14:08
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 iggy/bc19c411fd446a730171 to your computer and use it in GitHub Desktop.
Save iggy/bc19c411fd446a730171 to your computer and use it in GitHub Desktop.
pkg-jebediah:
pkg.latest:
- skip_verify: True
- watch_in:
- supervisord: jebediah
jebediah-supervisor:
supervisord.running:
- name: jebediah
- require:
- pkg: pkg-jebediah
- file: /data/jebediah/config.json
- file: jebediah-supervisor
file.managed:
- name: /etc/supervisor/conf.d/jebediah.conf
- source: salt://configs/jebediah-supervisor.conf
- env: {{ pillar["webserver_role"] }}
- user: www-data
- group: www-data
- require:
- pkg: pkg-jebediah
/data/jebediah/config.json:
file.managed:
- source: salt://configs/jebediah-config.json
- env: {{ pillar["webserver_role"] }}
- user: www-data
- group: www-data
- require:
- pkg: pkg-jebediah
- watch_in:
- supervisord: jebediah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment