xoxys.vault/templates/etc/containers/systemd/vault.container.j2
Robert Kaussow 492eecaea4
All checks were successful
continuous-integration/drone/push Build is passing
fix newlines in containe file
2023-08-05 17:43:16 +02:00

37 lines
965 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
[Install]
WantedBy=default.target
[Service]
Restart=on-failure
RestartSec=5s
ExecReload=/usr/bin/podman kill --signal=SIGHUP {{ __vault_container_name }}
[Container]
Image={{ vault_image }}
ContainerName={{ __vault_container_name }}
Exec=/usr/local/bin/docker-entrypoint.sh server
EnvironmentFile=/etc/containers/systemd/vault.env
{% for item in vault_volumes %}
Volume={{ item.name }}:{{ item.dest }}{{ ":" + item.opts if item.opts is defined else "" }}
{% endfor %}
{% if (vault_cap_add + vault_cap_drop) | length > 0 %}
{% if vault_cap_add | length > 0 %}
AddCapability={{ vault_cap_add | join(" ") }}
{% endif %}
{% if vault_cap_drop | length > 0 %}
DropCapability={{ vault_cap_drop | join(" ") }}
{% endif %}
{% endif %}
Network={{ vault_network }}
{% for item in vault_exposed_ports %}
PublishPort={{ item }}
{% endfor %}
{% for item in vault_podman_args %}
PodmanArgs={{ item }}
{% endfor %}