1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-20 18:59:08 +00:00
community.general/tests/integration/targets/supervisorctl/templates/supervisord.conf
Felix Fontein 476f2bf641
Integration tests: replace ansible_xxx with ansible_facts.xxx (#11479)
Replace ansible_xxx with ansible_facts.xxx.
2026-02-07 18:18:48 +01:00

48 lines
1.4 KiB
Text

{#
Copyright (c) Ansible Project
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
SPDX-License-Identifier: GPL-3.0-or-later
#}
[supervisord]
pidfile={{ remote_dir }}/supervisord.pid
logfile={{ remote_dir }}/supervisord.log
[program:py1]
command={{ ansible_facts.python.executable }} -i -u -
user={{ ansible_facts.user_id }}
autostart=false
autorestart=false
stdout_logfile={{ remote_dir }}/py1.log
redirect_stderr=yes
[program:py2]
command={{ ansible_facts.python.executable }} -i -u -
user={{ ansible_facts.user_id }}
autostart=false
autorestart=false
stdout_logfile={{ remote_dir }}/py2.log
redirect_stderr=yes
[group:pys]
programs=py1,py2
[unix_http_server]
file={{ supervisord_sock_path.path }}/supervisord.sock
{% if credentials.username is defined and credentials.username|default(false, boolean=true) %}
username = {{ credentials.username }}
password = {{ credentials.password }}
{% endif %}
[inet_http_server]
port=127.0.0.1:9001
{% if credentials.username is defined and credentials.username|default(false, boolean=true) %}
username = {{ credentials.username }}
password = {{ credentials.password }}
{% endif %}
[supervisorctl]
serverurl=unix://{{ supervisord_sock_path.path }}/supervisord.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface