realms-wiki/srv/salt/supervisor/init.sls
Matthew Scragg 9492f99943 salt changes
2014-01-16 16:15:25 -06:00

17 lines
394 B
Plaintext

/etc/supervisor/conf.d/realms.conf:
file.managed:
- source: salt://supervisor/supervisord.conf
supervisor-pip:
pip:
- name: supervisor
- installed
- require:
- pkg.installed: python-pip
supervisor-run:
cmd.run:
- unless: test -e /tmp/supervisord.pid
- name: /usr/local/bin/supervisord
- require:
- file.managed: /etc/supervisor/conf.d/realms.conf