From 947767bdc907348c2e56efe074dc5df2fbdb56b6 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 4 Nov 2022 09:22:22 +0100 Subject: [PATCH] added pillar configured containers to auto detect --- podman/init.sls | 7 +++++++ 1 file changed, 7 insertions(+) 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 %}