xoxys.woodpecker_agent/templates/etc/sysconfig/woodpecker_agent.j2
Robert Kaussow 4a498eaa1b
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
initial commit
2024-02-15 11:17:18 +01:00

22 lines
777 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
WOODPECKER_SERVER={{ inst.woodpecker_server | default(woodpecker_agent_woodpecker_server) }}
WOODPECKER_LOG_LEVEL={{ inst.log_level | default(woodpecker_agent_log_level) }}
WOODPECKER_MAX_WORKFLOWS={{ inst.max_workflows | default(woodpecker_agent_max_workflows) }}
{% if __woodpecker_agent_filter_labels | length > 0 %}
WOODPECKER_FILTER_LABELS={{ __woodpecker_agent_filter_labels | join(",") }}
{% endif %}
{% if __woodpecker_agent_env | length > 0 %}
{% for item in __woodpecker_agent_env %}
{{ item.name | upper }}={{ item.value }}
{% endfor %}
{% for item in inst.env_extra %}
{{ item.name | upper }}={{ item.value }}
{% endfor %}
{% endif %}
WOODPECKER_BACKEND=docker
DOCKER_HOST=unix:///var/run/docker.sock