blob: c4c2c5430be6af476fb5e526ad35f9952a303360 (
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}"],
}
}
|