From 323bed129ee53791d0bf78d57d4abb78b3b5d23c Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Fri, 10 Mar 2023 00:08:00 +0100 Subject: [PATCH] updated kitty state --- states/kitty/config.sls | 2 +- states/kitty/kitty.conf.j2 | 4 ---- states/kitty/templates/kitty.conf.j2 | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 states/kitty/kitty.conf.j2 create mode 100644 states/kitty/templates/kitty.conf.j2 diff --git a/states/kitty/config.sls b/states/kitty/config.sls index 7a91293..1ca423b 100644 --- a/states/kitty/config.sls +++ b/states/kitty/config.sls @@ -12,7 +12,7 @@ kitty-config-dir-{{ name }}: kitty-user-{{ name }}: file.managed: - name: {{ user.home }}/.config/kitty/kitty.conf - - source: salt://kitty/kitty.conf.j2 + - source: salt://kitty/templates/kitty.conf.j2 - user: {{ name }} - group: {{ user.gid }} - mode: 0644 diff --git a/states/kitty/kitty.conf.j2 b/states/kitty/kitty.conf.j2 deleted file mode 100644 index 504263b..0000000 --- a/states/kitty/kitty.conf.j2 +++ /dev/null @@ -1,4 +0,0 @@ -{%- from "kitty/map.jinja" import kitty with context %} -{%- for key, value in kitty.config.items() %} -{{ key }} {{ value }} -{%- endfor %} diff --git a/states/kitty/templates/kitty.conf.j2 b/states/kitty/templates/kitty.conf.j2 new file mode 100644 index 0000000..1d7d98c --- /dev/null +++ b/states/kitty/templates/kitty.conf.j2 @@ -0,0 +1,4 @@ +{%- from "kitty/map.jinja" import kitty with context -%} +{% for key, value in kitty.config.items() -%} +{{ key }} {{ value }} +{% endfor -%}