paulbsd-salt/states/zsh/users.sls

17 lines
374 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
2021-09-25 16:03:39 +02:00
{%- from "zsh/map.jinja" import users with context %}
{%- for name, user in users.items() %}
2020-07-10 00:58:55 +02:00
{%- if user.enabled %}
zshrc-user-{{ name }}:
2020-07-10 00:58:55 +02:00
file.managed:
- name: {{ user.home }}/.zshrc
2022-12-28 13:43:37 +01:00
- contents: ""
- user: {{ name }}
2020-07-10 00:58:55 +02:00
- group: {{ user.gid }}
- mode: 0644
- require:
- pkg: zsh-pkg
- user: user-{{ name }}
2020-07-10 00:58:55 +02:00
{%- endif %}
2022-12-28 13:43:37 +01:00
{%- endfor %}