paulbsd-salt/states/zsh/users.sls
Paul Lecuq 37e2dfc3a1
All checks were successful
continuous-integration/drone/push Build is passing
updated zsh state
2022-12-28 13:43:37 +01:00

17 lines
374 B
Plaintext

---
{%- from "zsh/map.jinja" import users with context %}
{%- for name, user in users.items() %}
{%- if user.enabled %}
zshrc-user-{{ name }}:
file.managed:
- name: {{ user.home }}/.zshrc
- contents: ""
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0644
- require:
- pkg: zsh-pkg
- user: user-{{ name }}
{%- endif %}
{%- endfor %}