]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Use work email on work machine for git
authorMaximilian Friedersdorff <maximilian.friedersdorff@envsys.co.uk>
Mon, 27 Jun 2022 15:28:38 +0000 (16:28 +0100)
committerMaximilian Friedersdorff <maximilian.friedersdorff@envsys.co.uk>
Mon, 27 Jun 2022 15:28:38 +0000 (16:28 +0100)
states/git/init.sls

index 097f4b93cfa392a84daa77512a81c58af99e6954..91c9baebbb82e81dccefbd13784d690c0344179a 100644 (file)
@@ -48,6 +48,24 @@ include:
     - user: {{ grains['user'] }}
 {% endfor %}
 
+{% if grains['host'] in ["barium"] %}
+work_email:
+  git.config_set:
+    - name: user.email
+    - value: >-
+        maximilian.friedersdorff@envsys.co.uk
+    - global: True
+    - user: {{ grains['user'] }}
+
+work_gpg:
+  git.config_set:
+    - name: user.signingkey
+    - value: >-
+        B3030EB2
+    - global: True
+    - user: {{ grains['user'] }}
+{% endif %}
+
 global gitignore:
   file.managed:
     - name: {{ grains['homedir'] }}/.gitignore