12 lines
287 B
Plaintext
12 lines
287 B
Plaintext
|
{% set user = salt['pillar.get']('podman:user', 'root') %}
|
||
|
|
||
|
Install packages needed for podman:
|
||
|
pkg.installed:
|
||
|
- pkgs:
|
||
|
- podman
|
||
|
|
||
|
Set linger for user {{ user }}:
|
||
|
cmd.run:
|
||
|
- name: loginctl enable-linger {{ user }}
|
||
|
- unless: test -e /var/lib/systemd/linger/{{ user }}
|