2020-07-10 00:58:55 +02:00
|
|
|
---
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- from "zsh/map.jinja" import users with context %}
|
2022-06-08 23:48:21 +02:00
|
|
|
{%- for name, user in users.items() %}
|
2020-07-10 00:58:55 +02:00
|
|
|
{%- if user.enabled %}
|
2022-06-08 23:48:21 +02:00
|
|
|
zshrc-user-{{ name }}:
|
2020-07-10 00:58:55 +02:00
|
|
|
file.managed:
|
|
|
|
- name: {{ user.home }}/.zshrc
|
|
|
|
- source: salt://zsh/zshrc.j2
|
2022-06-08 23:48:21 +02:00
|
|
|
- user: {{ name }}
|
2020-07-10 00:58:55 +02:00
|
|
|
- group: {{ user.gid }}
|
|
|
|
- mode: 0644
|
|
|
|
- template: jinja
|
|
|
|
- require:
|
|
|
|
- pkg: zsh-pkg
|
2022-06-08 23:48:21 +02:00
|
|
|
- user: user-{{ name }}
|
2020-07-10 00:58:55 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|