blob: f7364846b93684cca0cfe6c5d9058a29592744d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
define git::mirror( $source,
$description,
$refresh = '*/5') {
include git::common
exec { "/usr/bin/git clone --mirror ${source} ${name}":
alias => "git mirror ${name}",
creates => $name,
before => File["${name}/description"],
}
file { "${name}/description":
content => $description,
}
cron { "update ${name}":
command => "cd ${name} ; /usr/bin/git fetch -q",
minute => $refresh
}
}
|