--- /dev/null
+{% set git_useflags = [
+ 'gpg'
+] %}
+
+set useflags:
+ file.managed:
+ - name: /etc/portage/package.use/git-salt
+ - contents:
+ {% for flag in git_useflags %}
+ - dev-vcs/git {{ flag }}
+ {% endfor %}
+ - user: root
+ - group: root
+ - mode: 644
+ - require_in:
+ - pkg: git installed
+
+git installed:
+ pkg.installed:
+ - name: dev-vcs/git
--- /dev/null
+include:
+ - git.{{ grains['os'] | lower }}
+
+
+{% set git_vars = {
+ 'user.name': 'Maximilian Friedersdorff',
+ 'user.email': 'max@friedersdorff.com'
+}
+%}
+
+{% for var,val in git_vars.items() %}
+{{ var }}:
+ git.config_set:
+ - value: {{ val }}
+ - global: True
+ - user: {{ grains['user'] }}
+{% endfor %}