diff --git a/podman/init.sls b/podman/init.sls index 89ca54f..9cc0bff 100644 --- a/podman/init.sls +++ b/podman/init.sls @@ -9,3 +9,10 @@ Set linger for user {{ user }}: cmd.run: - name: loginctl enable-linger {{ user }} - unless: test -e /var/lib/systemd/linger/{{ user }} + +{% if pillar.containers is defined %} +include: +{%- for container, args in pillar.containers.items() %} + - podman.{{ container }} +{%- endfor %} +{%- endif %}