[Mageia-sysadm] [303] add the default commit script and directory

root at mageia.org root at mageia.org
Fri Nov 19 01:24:20 CET 2010


Revision: 303
Author:   misc
Date:     2010-11-19 01:24:19 +0100 (Fri, 19 Nov 2010)
Log Message:
-----------
add the default commit script and directory

Modified Paths:
--------------
    puppet/modules/subversion/manifests/init.pp

Modified: puppet/modules/subversion/manifests/init.pp
===================================================================
--- puppet/modules/subversion/manifests/init.pp	2010-11-19 00:24:18 UTC (rev 302)
+++ puppet/modules/subversion/manifests/init.pp	2010-11-19 00:24:19 UTC (rev 303)
@@ -66,6 +66,24 @@
             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,
+        }
+
+    
     }   
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101119/3f55be7e/attachment-0001.html>


More information about the Mageia-sysadm mailing list