]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Ensure vim backup directory exists
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 07:33:22 +0000 (08:33 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 07:33:22 +0000 (08:33 +0100)
states/vim/init.sls

index 7f1ffa595f5e838e13f5b6dc13055ca6e5b9a705..004cadf3652aa7859789891c1b4788ac6413e4a3 100644 (file)
@@ -29,3 +29,11 @@ plugins install:
 plugins update:
   cmd.run:
     - name: vim +PluginUpdate +qall
+
+packup dir:
+  file.directory:
+    - name: {{ grains['homedir'] }}/.vim/backup
+    - user: {{ grains['user'] }}
+    - group: {{ grains['user'] }}
+    - mode: 750
+    - makedirs: True