diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-19 00:24:19 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-19 00:24:19 +0000 |
commit | b3451c938c27998eb81ecb360bce528de2e173d5 (patch) | |
tree | 430e7337a66c9455a990f9e94940e9df703311f7 /modules/subversion/manifests | |
parent | 4cf5ae9c04af0b251b8a974996a361812ca80bf4 (diff) | |
download | puppet-b3451c938c27998eb81ecb360bce528de2e173d5.tar puppet-b3451c938c27998eb81ecb360bce528de2e173d5.tar.gz puppet-b3451c938c27998eb81ecb360bce528de2e173d5.tar.bz2 puppet-b3451c938c27998eb81ecb360bce528de2e173d5.tar.xz puppet-b3451c938c27998eb81ecb360bce528de2e173d5.zip |
add the default commit script and directory
Diffstat (limited to 'modules/subversion/manifests')
-rw-r--r-- | modules/subversion/manifests/init.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index 9e034e23..f1f6616e 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -66,6 +66,24 @@ class subversion { ensure => directory } + $hooks = ["$name/hooks/pre-commit","$name/hooks/post-commit"] + file { "$hooks": + ensure => present, + owner => root, + group => root, + mode => 755, + content => template("subversion/hook_commit.sh") + } + + $hooks_dir = ["$name/hooks/pre-commit.d","$name/hooks/post-commit.d"] + file { "$hooks_dir": + ensure => directory, + owner => root, + group => root, + mode => 755, + } + + } |