diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-10 02:24:22 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-10 02:24:22 +0000 |
commit | 10de978ddf0d5b538a32cf579e0115bc21aadcd3 (patch) | |
tree | dfdda3861af31a58d5a5d20c4cc3b576fddc5026 /modules/git/manifests | |
parent | 02c2a0e659a14172ff8b6a168cb99f2055e991fe (diff) | |
download | puppet-10de978ddf0d5b538a32cf579e0115bc21aadcd3.tar puppet-10de978ddf0d5b538a32cf579e0115bc21aadcd3.tar.gz puppet-10de978ddf0d5b538a32cf579e0115bc21aadcd3.tar.bz2 puppet-10de978ddf0d5b538a32cf579e0115bc21aadcd3.tar.xz puppet-10de978ddf0d5b538a32cf579e0115bc21aadcd3.zip |
add a post commit script to send mail
Diffstat (limited to 'modules/git/manifests')
-rw-r--r-- | modules/git/manifests/init.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index eab748d4..b4e1b6e1 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -74,6 +74,15 @@ class git { require => File["$name/git-daemon-export-ok"] } + file { "$name/hooks/post-receive": + ensure => present, + owner => root, + group => root, + mode => 755, + content => template('git/post-receive'), + require => File["$name/git-daemon-export-ok"] + } + file { "$name/config.puppet": ensure => present, require => File["$name/git-daemon-export-ok"], |