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

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 {