aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-15 16:24:52 +0000
committerMichael Scherer <misc@mageia.org>2012-01-15 16:24:52 +0000
commit6634f9507e94fa94f8c959ce674eeecda463f852 (patch)
treeba1e9d5ca64cd2e1f1a45564174cabadcd90a5a6 /modules/subversion/manifests
parent25ad808e7ef9b0d1d1709d7976a247fc92a3138d (diff)
downloadpuppet-6634f9507e94fa94f8c959ce674eeecda463f852.tar
puppet-6634f9507e94fa94f8c959ce674eeecda463f852.tar.gz
puppet-6634f9507e94fa94f8c959ce674eeecda463f852.tar.bz2
puppet-6634f9507e94fa94f8c959ce674eeecda463f852.tar.xz
puppet-6634f9507e94fa94f8c959ce674eeecda463f852.zip
use the new subversion::hook module
Diffstat (limited to 'modules/subversion/manifests')
-rw-r--r--modules/subversion/manifests/init.pp12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp
index 0bd6ba82..dd00586d 100644
--- a/modules/subversion/manifests/init.pp
+++ b/modules/subversion/manifests/init.pp
@@ -191,8 +191,7 @@ class subversion {
}
if $restricted_to_user {
- file { "$name/hooks/pre-commit.d/restricted_to_user":
- mode => 755,
+ subversion::hook::pre_commit("$name|restricted_to_user":
content => template("subversion/restricted_to_user"),
}
} else {
@@ -202,8 +201,7 @@ class subversion {
}
if $commit_mail {
- file { "$name/hooks/post-commit.d/send_mail":
- mode => 755,
+ subversion::hook::post_commit("$name|send_mail":
content => template("subversion/hook_sendmail.pl"),
require => [Package['perl-SVN-Notify-Config']],
}
@@ -214,8 +212,7 @@ class subversion {
}
if $cia_post {
- file { "$name/hooks/post-commit.d/cia.vc":
- mode => 755,
+ subversion::hook::post_commit("$name|cia.vc":
content => template("subversion/ciabot_svn.sh"),
}
@@ -234,8 +231,7 @@ class subversion {
}
if $extract_dir {
- file { "$name/hooks/post-commit.d/extract_dir":
- mode => 755,
+ subversion::hook::post_commit("$name|extract_dir":
content => template("subversion/hook_extract.pl"),
require => [Package['perl-SVN-Notify-Mirror']],
}