[Mageia-sysadm] [799] allow to update the description of the repository

root at mageia.org root at mageia.org
Fri Jan 14 03:40:31 CET 2011


Revision: 799
Author:   misc
Date:     2011-01-14 03:40:31 +0100 (Fri, 14 Jan 2011)
Log Message:
-----------
allow to update the description of the repository

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

Modified: puppet/modules/git/manifests/init.pp
===================================================================
--- puppet/modules/git/manifests/init.pp	2011-01-14 02:40:30 UTC (rev 798)
+++ puppet/modules/git/manifests/init.pp	2011-01-14 02:40:31 UTC (rev 799)
@@ -27,7 +27,7 @@
         # how do we handle commit permission ?
     }
 
-    define repository {
+    define repository($description = '') {
         exec { "git init --bare $name":
             creates => $name,
         }
@@ -36,6 +36,11 @@
             ensure => present,
             requires => Exec["git init --bare $name"]
         }
+        
+        file { "$name/description":
+            ensure => present,
+            content => $description
+        }
     }
 
     class client inherits common {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110114/f17b9c8b/attachment.html>


More information about the Mageia-sysadm mailing list