[Mageia-sysadm] [308] add support for syntax check in the repository define

root at mageia.org root at mageia.org
Fri Nov 19 01:53:05 CET 2010


Revision: 308
Author:   misc
Date:     2010-11-19 01:53:05 +0100 (Fri, 19 Nov 2010)
Log Message:
-----------
add support for syntax check in the repository define

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:46:14 UTC (rev 307)
+++ puppet/modules/subversion/manifests/init.pp	2010-11-19 00:53:05 UTC (rev 308)
@@ -126,10 +126,20 @@
                 content => template("subversion/hook_extract.pl")
             }
         }
-    
-    }   
 
+        $pre_commit_check = ['no_commit_log','no_root']
+        $pre_commit_check += $syntax_check
 
+        file { "$name/hooks/pre-commit.d/$pre_commit_check":
+            ensure => "/usr/local/share/subversion/pre-commit.d/$pre_commit_check",
+            owner => root,
+            group => root,
+            mode => 755
+        }
+
+    }
+
+
     class client {
         package { subversion:
             ensure => installed,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101119/add05e45/attachment-0001.html>


More information about the Mageia-sysadm mailing list