Skip to content

Commit

Permalink
Add supervisord
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Mar 1, 2015
1 parent 2b93d17 commit 446c932
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handlers/main.yml
@@ -0,0 +1,3 @@
---
- name: Restart Supervisord
service: name=supervisor state=restarted
8 changes: 8 additions & 0 deletions tasks/main.yml
Expand Up @@ -23,11 +23,19 @@
- "python-docutils"
- "python-pycurl"
- "oracle-java{{ base_java_version }}-installer"
- "supervisor"
- "tree"
- "unzip"
- "vim"
- "wget"

- name: "sensible.vim Configuration"
copy: >
src=vimrc.local
dest=/etc/vim/vimrc.local
- name: "Create supervisord.conf"
template: >
src=supervisord.j2
dest=/etc/supervisor/supervisord.conf
notify: "Restart Supervisord"
17 changes: 17 additions & 0 deletions templates/supervisord.j2
@@ -0,0 +1,17 @@
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700

[supervisord]
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
childlogdi$=/var/log/supervisor

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock

[include]
files = /etc/supervisor/conf.d/*.conf

0 comments on commit 446c932

Please sign in to comment.