]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Actually install dir_colors file
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 07:26:38 +0000 (08:26 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 07:26:38 +0000 (08:26 +0100)
states/dircolors/init.sls

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..902c0adf3929a294f188ecd74cb02776e5c62b33 100644 (file)
@@ -0,0 +1,8 @@
+ensure dircolor file:
+  file.managed:
+    - name: {{ grains['homedir'] }}/.dir_colors
+    - source: salt://dircolors/files/dir_colors
+    - user: {{ grains['user'] }}
+    - group: {{ grains['user'] }}
+    - mode: 660
+    - template: jinja