Skip to content

Instantly share code, notes, and snippets.

@OddBloke
Last active December 17, 2015 04:49
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 OddBloke/5553319 to your computer and use it in GitHub Desktop.
Save OddBloke/5553319 to your computer and use it in GitHub Desktop.
{% set port = '9001' -%}
supervisor:
pkg:
- installed
service:
- running
- require:
- pkg: supervisor
- watch:
- file: /etc/supervisor/conf.d/*
file.managed:
- name: /etc/supervisor/conf.d/httpinterface.conf
- source: salt://supervisord/templates/httpinterface.conf
- template: jinja
- context:
port: '{{ port }}'
- require:
- pkg: supervisor
file.managed:
- name: /etc/init.d/supervisor
- source: salt://supervisord/templates/init_script
- user: root
- group: root
- mode: 755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment