From 6634f9507e94fa94f8c959ce674eeecda463f852 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 15 Jan 2012 16:24:52 +0000 Subject: use the new subversion::hook module --- modules/subversion/manifests/init.pp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'modules/subversion/manifests') 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']], } -- cgit v1.2.1