/[adm]/puppet/modules/git/manifests/mirror.pp
ViewVC logotype

Contents of /puppet/modules/git/manifests/mirror.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Thu Mar 22 10:47:09 2012 UTC (10 years, 4 months ago) by misc
File size: 490 byte(s)
include git::common
1 define git::mirror( $source,
2 $description,
3 $refresh = '*/5') {
4
5 include git::common
6 exec { "/usr/bin/git clone --bare $source $name":
7 alias => "git mirror $name",
8 creates => $name,
9 before => File["$name/description"],
10 }
11
12 file { "$name/description":
13 content => $description,
14 }
15
16 cron { "update $name":
17 command => "cd $name ; /usr/bin/git fetch -q",
18 minute => $refresh
19 }
20 }

  ViewVC Help
Powered by ViewVC 1.1.28