From: Maximilian Friedersdorff Date: Mon, 27 Jun 2022 15:28:38 +0000 (+0100) Subject: Use work email on work machine for git X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=2f7cd5306fd779e6194554c4137ac18b3efe6632;p=max%2Fsaltfiles.git Use work email on work machine for git --- diff --git a/states/git/init.sls b/states/git/init.sls index 097f4b9..91c9bae 100644 --- a/states/git/init.sls +++ b/states/git/init.sls @@ -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