blob: b3a9be9aad83f9c0deeb3c93986651d310a06e09 (
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
}
}
|