]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/git/init.sls
Do not sync package repos on gentoo
[max/saltfiles.git] / states / git / init.sls
index 4d80ea07115339265a2c8d3ba358555ffb2fd208..3d1e0df74dcd6697767e7c98978a629ad4e44cd0 100644 (file)
@@ -2,7 +2,7 @@ include:
   - git.{{ grains['os'] | lower }}
 
 
-{% set git_vars = {
+{% set git_confs = {
   'color.ui': 'true',
   'color.branch': 'always',
   'color.status': 'always',
@@ -25,10 +25,18 @@ include:
 }
 %}
 
-{% for var,val in git_vars.items() %}
+{% for var,val in git_confs.items() %}
 {{ var }}:
   git.config_set:
     - value: {{ val }}
     - global: True
     - user: {{ grains['user'] }}
 {% endfor %}
+
+global gitignore:
+  file.managed:
+    - name: {{ grains['homedir'] }}/.gitignore
+    - source: {{ grains['stateroot'] }}/git/files/gitignore
+    - mode: 644
+    - user: {{ grains['user'] }}
+    - group: {{ grains['user'] }}