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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3244 - (hide 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 misc 2668 define git::mirror( $source,
2     $description,
3     $refresh = '*/5') {
4    
5 misc 2671 include git::common
6 colin 3244 exec { "/usr/bin/git clone --mirror $source $name":
7 misc 2668 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