aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/manifests/init.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp
index e1bc870e..6c0b1553 100644
--- a/modules/git/manifests/init.pp
+++ b/modules/git/manifests/init.pp
@@ -98,6 +98,20 @@ class git {
}
}
+ define mirror($source,
+ $refresh = '*/5') {
+
+ exec { "/usr/bin/git clone $source $name":
+ alias => "git mirror $name",
+ creates => $name,
+ }
+
+ cron { "update $name":
+ command => "/usr/bin/git pull $name" ,
+ minute => $refresh
+ }
+ }
+
define svn_repository($source,
$std_layout = true,
$refresh = '*/5') {