From 875c037af9d5d75bb5d95a67f29158c031b0de7a Mon Sep 17 00:00:00 2001 From: Elijah Lazkani Date: Tue, 10 Jan 2017 23:13:12 -0500 Subject: [PATCH] Adding a basic git configuration to all machine. --- salty/base/git/files/gitconfig | 3 +++ salty/base/git/init.sls | 10 ++++++++++ salty/base/top.sls | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 salty/base/git/files/gitconfig create mode 100644 salty/base/git/init.sls create mode 100644 salty/base/top.sls diff --git a/salty/base/git/files/gitconfig b/salty/base/git/files/gitconfig new file mode 100644 index 0000000..c0b604a --- /dev/null +++ b/salty/base/git/files/gitconfig @@ -0,0 +1,3 @@ +[user] + email = EliaElLazkani@Gmail.com + name = Elijah Lazkani diff --git a/salty/base/git/init.sls b/salty/base/git/init.sls new file mode 100644 index 0000000..2f501a2 --- /dev/null +++ b/salty/base/git/init.sls @@ -0,0 +1,10 @@ +git: + pkg.installed + +gitconfig: + file.managed: + - name: {{ grains.homedir }}/.gitconfig + - source: salt:///git/files/gitconfig + - user: {{ grains.user }} + - group: {{ grains.group }} + - force: True diff --git a/salty/base/top.sls b/salty/base/top.sls new file mode 100644 index 0000000..4468cfb --- /dev/null +++ b/salty/base/top.sls @@ -0,0 +1,3 @@ +base: + '*': + - git