]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Use salt:// url for templates
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 08:25:34 +0000 (09:25 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 08:25:34 +0000 (09:25 +0100)
states/sway/init.sls

index 4b04205df82767ce527b5c0cd62377d1bab0fe8d..a134528fc72572e020dbe39b93e3c97d1686ba9e 100644 (file)
@@ -15,7 +15,7 @@ config dir:
 sway config:
   file.managed:
     - name: {{ grains['homedir'] }}/.config/sway/config
-    - source: {{ grains['stateroot'] }}/sway/files/config.jinja
+    - source: salt://sway/files/config.jinja
     - template: jinja
     - user: {{ grains['user']}}
     - group: {{ grains['user']}}
@@ -24,7 +24,7 @@ sway config:
 lock script:
   file.managed:
     - name: {{ grains['homedir'] }}/.local/bin/lock.nosmartcard
-    - source: {{ grains['stateroot'] }}/sway/files/lock
+    - source: salt://sway/files/lock
     - template: jinja
     - user: {{ grains['user'] }}
     - group: {{ grains['user'] }}
@@ -33,7 +33,7 @@ lock script:
 conky launch script:
   file.managed:
     - name: {{ grains['homedir'] }}/.local/bin/conky-i3bar
-    - source: {{ grains['stateroot'] }}/sway/files/conky-i3bar
+    - source: salt://sway/files/conky-i3bar
     - user: {{ grains['user'] }}
     - group: {{ grains['user'] }}
     - mode: 750