aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/manifests/init.pp6
1 files changed, 6 insertions, 0 deletions
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" ,