From dff0746f1e63f2ba7575936289bdfd2cbd90f18f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 19 Jul 2011 23:35:45 +0000 Subject: add a parameter for the description --- modules/git/manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index 6c0b1553..01410b94 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -99,12 +99,18 @@ class git { } define mirror($source, + $description, $refresh = '*/5') { exec { "/usr/bin/git clone $source $name": alias => "git mirror $name", creates => $name, } + + file { "$name/description": + ensure => present, + content => $description, + } cron { "update $name": command => "/usr/bin/git pull $name" , -- cgit v1.2.1