From 2f7cd5306fd779e6194554c4137ac18b3efe6632 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 27 Jun 2022 16:28:38 +0100 Subject: [PATCH] Use work email on work machine for git --- states/git/init.sls | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 2.46.2