/[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 2668 - (show annotations) (download)
Thu Mar 22 10:47:02 2012 UTC (12 years, 1 month ago) by misc
File size: 466 byte(s)
split mirror in a separate file
1 define git::mirror( $source,
2 $description,
3 $refresh = '*/5') {
4
5 exec { "/usr/bin/git clone --bare $source $name":
6 alias => "git mirror $name",
7 creates => $name,
8 before => File["$name/description"],
9 }
10
11 file { "$name/description":
12 content => $description,
13 }
14
15 cron { "update $name":
16 command => "cd $name ; /usr/bin/git fetch -q",
17 minute => $refresh
18 }
19 }

  ViewVC Help
Powered by ViewVC 1.1.30