[Mageia-sysadm] [320] - rewrite the others part too, for same reason ( arrays that do not work like I believed )

root at mageia.org root at mageia.org
Fri Nov 19 01:59:57 CET 2010


Revision: 320
Author:   misc
Date:     2010-11-19 01:59:57 +0100 (Fri, 19 Nov 2010)
Log Message:
-----------
- rewrite the others part too, for same reason ( arrays that do not work like I believed )

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:59:56 UTC (rev 319)
+++ puppet/modules/subversion/manifests/init.pp	2010-11-19 00:59:57 UTC (rev 320)
@@ -123,8 +123,7 @@
             ensure => directory
         }
 
-        $hooks = ["$name/hooks/pre-commit","$name/hooks/post-commit"]
-        file { "$hooks":
+        file { ["$name/hooks/pre-commit","$name/hooks/post-commit"]:
             ensure => present,
             owner => root,
             group => root,
@@ -132,8 +131,7 @@
             content => template("subversion/hook_commit.sh")
         }
 
-        $hooks_dir = ["$name/hooks/pre-commit.d","$name/hooks/post-commit.d"]
-        file { "$hooks_dir":
+        file { ["$name/hooks/post-commit.d", "$name/hooks/pre-commit.d"]:
             ensure => directory,
             owner => root,
             group => root,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101119/27e0f6b8/attachment-0001.html>


More information about the Mageia-sysadm mailing list