From 72e8f34f46626eccbba4904b431bb5e86ca6932a Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 14 Jan 2011 02:40:31 +0000 Subject: allow to update the description of the repository --- modules/git/manifests/init.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index d5197d02..93c8fb32 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -27,7 +27,7 @@ class git { # how do we handle commit permission ? } - define repository { + define repository($description = '') { exec { "git init --bare $name": creates => $name, } @@ -36,6 +36,11 @@ class git { ensure => present, requires => Exec["git init --bare $name"] } + + file { "$name/description": + ensure => present, + content => $description + } } class client inherits common { -- cgit v1.2.1