diff options
Diffstat (limited to 'modules/subversion')
-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, + } + + } |