paulbsd-salt/states/zsh/users.sls
2020-07-10 00:58:55 +02:00

17 lines
414 B
Plaintext

---
{%- from "users/map.jinja" import users with context -%}
{%- for user in users %}
{%- if user.enabled %}
zshrc-user-{{ user.name }}:
file.managed:
- name: {{ user.home }}/.zshrc
- source: salt://zsh/zshrc.j2
- user: {{ user.name }}
- group: {{ user.gid }}
- mode: 0644
- template: jinja
- require:
- pkg: zsh-pkg
- user: user-{{ user.name }}
{%- endif %}
{%- endfor %}