Skip to content

Commit

Permalink
Merge pull request #53 from Oefenweb/pr-46
Browse files Browse the repository at this point in the history
Add variable to configure supervisord environment variables
  • Loading branch information
tersmitten authored Jan 21, 2020
2 parents 8f319d5 + 29b00e8 commit 2b6d91e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## supervisor

[![Build Status](https://travis-ci.org/Oefenweb/ansible-supervisor.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-supervisor) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-supervisor-blue.svg)](https://galaxy.ansible.com/Oefenweb/supervisor)
[![Build Status](https://travis-ci.org/Oefenweb/ansible-supervisor.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-supervisor)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-supervisor-blue.svg)](https://galaxy.ansible.com/Oefenweb/supervisor)

Set up the latest or a specific version of supervisor in Debian-like systems.

Expand Down Expand Up @@ -30,6 +31,7 @@ Set up the latest or a specific version of supervisor in Debian-like systems.
* `supervisor_supervisord_logfile` [default: `/var/log/supervisor/supervisord.log`]: The path to the activity log of the supervisord process
* `supervisor_supervisord_pidfile` [default: `/var/run/supervisord.pid`]: The location in which supervisord keeps its pid file
* `supervisor_supervisord_childlogdir` [default: `/var/log/supervisor`]: The directory used for `AUTO` child log files
* `supervisor_supervisord_environment` [default: `''`]: A list of key/value pairs comma separated that will be placed in the environment (e.g. `'KEY1="VALUE1",KEY2="VALUE2"'`)

* `supervisor_supervisorctl_serverurl` [default: `"unix://{{ supervisor_unix_http_server_file }}"`]: The URL that should be used to access the supervisord server, e.g. `http://localhost:9001`. For UNIX domain sockets, use `unix:///absolute/path/to/file.sock`

Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supervisor_supervisord_nodaemon: false
supervisor_supervisord_logfile: /var/log/supervisor/supervisord.log
supervisor_supervisord_pidfile: /var/run/supervisord.pid
supervisor_supervisord_childlogdir: /var/log/supervisor
supervisor_supervisord_environment: ''

supervisor_supervisorctl_serverurl: "unix://{{ supervisor_unix_http_server_file }}"

Expand Down
1 change: 1 addition & 0 deletions templates/etc/supervisor/supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ nodaemon={{ supervisor_supervisord_nodaemon | default(false) | bool | to_json }}
logfile={{ supervisor_supervisord_logfile }} ; (main log file;default $CWD/supervisord.log)
pidfile={{ supervisor_supervisord_pidfile }} ; (supervisord pidfile;default supervisord.pid)
childlogdir={{ supervisor_supervisord_childlogdir }} ; ('AUTO' child log dir, default $TEMP)
environment={{ supervisor_supervisord_environment }}

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
Expand Down
1 change: 0 additions & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# vars file for supervisor
---

supervisor_install_prefix: /usr/local/bin
supervisor_default_file: /etc/default/supervisor

0 comments on commit 2b6d91e

Please sign in to comment.