filebeat/playbooks/roles/supervisor/templates/supervisor.yml

38 lines
946 B
YAML

[supervisord]
logfile = /tmp/supervisord_{{instance_name}}.log
logfile_maxbytes = 50MB
logfile_backups=5
loglevel = debug
pidfile = /tmp/supervisord_{{instance_name}}.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
user = filebeat
identifier = supervisor_{{instance_name}}
directory = {{ work_path }}
nocleanup = true
strip_ansi = false
[unix_http_server]
file = /tmp/supervisord_{{instance_name}}.sock
chmod = 0777
chown = filebeat:filebeat
username = filebeat
password = eNlB.UlOrJAnA
{% for item in items %}
[program:filebeat_{{instance_name}}_{{ item }}]
command={{ work_path }}/filebeat -c {{ work_path }}/filebeat_{{ item }}.yml
autorestart=true
{% endfor %}
[supervisorctl]
serverurl = unix:///tmp/supervisord_{{instance_name}}.sock
username = filebeat
password = eNlB.UlOrJAnA
prompt = filebeat_{{instance_name}}
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface