Advertisement
Guest User

Untitled

a guest
Dec 13th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. include:
  2. - supervisor
  3.  
  4. {% for process_id in range(3) %}
  5. celeryd:celeryd_{{ '%02d'|format(process_id) }}:
  6. supervisord.running:
  7. - update: True
  8. - watch:
  9. - file: /etc/supervisor/conf.d/celeryd.conf
  10. - require:
  11. - pkg: supervisor
  12. {% endfor %}
  13.  
  14. /etc/supervisor/conf.d/celeryd.conf:
  15. file.managed:
  16. - source: salt://files/celeryd.supervisor.conf
  17. - watch_in:
  18. - service: supervisor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement