From 10de978ddf0d5b538a32cf579e0115bc21aadcd3 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 10 Feb 2011 02:24:22 +0000 Subject: add a post commit script to send mail --- modules/git/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/git/manifests/init.pp') 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"], -- cgit v1.2.1