podman/user.sls - Add random password for puser

This commit is contained in:
LinuxSquare 2023-12-23 12:36:32 +01:00
parent 169c969b46
commit 4ddca813a2

View file

@ -7,6 +7,8 @@ podman_user_puser:
- uid: 2000
- shell: /bin/zsh
- home: /home/puser
- password: {{ salt['cmd.shell']('< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;') }}
- hash_password: True
- usergroup: True
- createhome: True
- require: