X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fgit%2Finit.sls;h=6090612013bc9d6bba195c00f22b4942ead16fb5;hb=4f4af91f5f52bba65da2a91141d3faf203ab76f4;hp=097f4b93cfa392a84daa77512a81c58af99e6954;hpb=21ed4ff542f29c47169d068d4a95204e4320c04b;p=max%2Fsaltfiles.git diff --git a/states/git/init.sls b/states/git/init.sls index 097f4b9..6090612 100644 --- a/states/git/init.sls +++ b/states/git/init.sls @@ -14,8 +14,9 @@ include: 'core.editor': 'vim', 'core.excludesfile': '/home/' + grains['user'] + '/.gitignore', 'merge.tool': 'diffuse', - 'merge.ff': 'true', - 'pull.rebase': 'false', + 'merge.ff': 'false', + 'pull.rebase': 'true', + 'pull.ff': 'true', 'push.default': 'simple', 'alias.lg': 'log --graph --pretty=format:\'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset\' --date=short', 'alias.hist': 'log --graph --full-history --all --pretty=format:\'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset\' --date=short', @@ -48,6 +49,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 @@ -55,3 +74,14 @@ global gitignore: - mode: 644 - user: {{ grains['user'] }} - group: {{ grains['user'] }} + +git-prompt: + file.managed: + - name: {{ grains['homedir'] }}/.git-prompt.sh + - source: https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh + - mode: 644 + - user: {{ grains['user'] }} + - group: {{ grains['user'] }} + - skip_verify: True + +