aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-10 02:24:21 +0000
committerMichael Scherer <misc@mageia.org>2011-02-10 02:24:21 +0000
commit02c2a0e659a14172ff8b6a168cb99f2055e991fe (patch)
treeb852ae159b241062c6c6e2a7ca452e8d89585d44 /modules/git/templates
parent6da75de997dcb3e48d67c55c5bdf090712ebfc48 (diff)
downloadpuppet-02c2a0e659a14172ff8b6a168cb99f2055e991fe.tar
puppet-02c2a0e659a14172ff8b6a168cb99f2055e991fe.tar.gz
puppet-02c2a0e659a14172ff8b6a168cb99f2055e991fe.tar.bz2
puppet-02c2a0e659a14172ff8b6a168cb99f2055e991fe.tar.xz
puppet-02c2a0e659a14172ff8b6a168cb99f2055e991fe.zip
add basic framework for modifying configuration of a git repository with puppet ( used for mail commit script later )
Diffstat (limited to 'modules/git/templates')
-rw-r--r--modules/git/templates/apply_git_puppet_config.sh7
-rw-r--r--modules/git/templates/config.puppet0
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/git/templates/apply_git_puppet_config.sh b/modules/git/templates/apply_git_puppet_config.sh
new file mode 100644
index 00000000..29ede998
--- /dev/null
+++ b/modules/git/templates/apply_git_puppet_config.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+while read line
+do
+ # --local is a option for the newer git
+ git config --add $line
+done < config.puppet
diff --git a/modules/git/templates/config.puppet b/modules/git/templates/config.puppet
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/modules/git/templates/config.puppet