/[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 3244 - (show annotations) (download)
Sun Jun 9 12:40:04 2013 UTC (9 years, 2 months ago) by colin
File size: 492 byte(s)
git: Use --mirror over --bare such that new branches etc. are pulled.
1 define git::mirror( $source,
2 $description,
3 $refresh = '*/5') {
4
5 include git::common
6 exec { "/usr/bin/git clone --mirror $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