blob: 2100bc6c4388eba0f72ff81cb00e120ab74c083e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
define mirror::mirrordir ($remoteurl,
$localdir,
$rsync_options='-avH --delete') {
include mirror::base
$lockfile = "${mirror::base::locksdir}/${name}"
file { $localdir:
ensure => directory,
owner => 'mirror',
group => 'mirror',
}
mga_common::local_script { "mirror_${name}":
content => template('mirror/mirrordir'),
}
cron { "mirror_${name}":
user => mirror,
minute => '*/10',
command => "/usr/local/bin/mirror_${name}",
require => Mga_common::Local_script["mirror_${name}"],
}
}
|