/[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 2668 - (hide annotations) (download)
Thu Mar 22 10:47:02 2012 UTC (10 years, 4 months ago) by misc
File size: 466 byte(s)
split mirror in a separate file
1 misc 2668 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.28