Open safeaim opened 8 months ago
{% macro optional_parameter(variable, line_format)%}
{% if variable is defined %}
{{ line_format|format(variable)}}
{% endif %}
{% endmacro %}
{{ optional_parameter(container_service_description, "Description=%s")-}}
Use this format to avoid 300 lines of if/else
Currently the container.unit jinja2 template only supports a limited set of parameters.
See full list here: podman-systemd.unit - systemd units using Podman Quadlet