diff options
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/manifests/init.pp | 9 | ||||
-rw-r--r-- | modules/git/templates/post-receive | 6 |
2 files changed, 15 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"], diff --git a/modules/git/templates/post-receive b/modules/git/templates/post-receive new file mode 100644 index 00000000..b4330e13 --- /dev/null +++ b/modules/git/templates/post-receive @@ -0,0 +1,6 @@ +#!/bin/sh + +# FIXME the contrib/hooks should be in /usr/share/git-core +# but this may cause issue with automated requirement +. /usr/share/doc/git-core/contrib/hooks/post-receive-email + |