This repository has been archived on 2023-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
salt-states_old/podman/init.sls

12 lines
287 B
Plaintext
Raw Normal View History

2022-11-02 10:18:20 +00:00
{% 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 }}