paulbsd-salt/states/kitty/config.sls

25 lines
620 B
Plaintext
Raw Normal View History

2022-12-03 00:10:55 +01:00
---
{%- from "kitty/map.jinja" import users with context %}
{%- for name, user in users.items() %}
{%- if user.enabled %}
kitty-config-dir-{{ name }}:
file.directory:
- name: {{ user.home }}/.config/kitty
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0755
2023-01-04 23:36:21 +01:00
kitty-user-{{ name }}:
2022-12-03 00:10:55 +01:00
file.managed:
- name: {{ user.home }}/.config/kitty/kitty.conf
2023-03-10 00:08:00 +01:00
- source: salt://kitty/templates/kitty.conf.j2
2022-12-03 00:10:55 +01:00
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0644
- template: jinja
- require:
- pkg: kitty-pkg
- file: kitty-config-dir-{{ name }}
{%- endif %}
{%- endfor %}