1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'modules/dumps/manifests/web/dumpstatusfiles.pp', line 1
class dumps::web::dumpstatusfiles(
$xmldumpsdir = undef,
) {
file { '/usr/local/bin/unpack-dumpstatusfiles.sh':
ensure => 'present',
mode => '0755',
owner => 'root',
group => 'root',
source => 'puppet:///modules/dumps/web/unpack-dumpstatusfiles.sh',
}
# interval passed to script should match interval cron job runs;
# check every interval minutes for a new tarball of status files
# and unpack them
systemd::timer::job { 'update-dump-statusfiles':
ensure => present,
description => 'Check for a new tarball of status files, and unpack',
user => 'root',
send_mail => true,
send_mail_to => 'ops-dumps@wikimedia.org',
command => "/bin/bash /usr/local/bin/unpack-dumpstatusfiles.sh --xmldumpsdir ${xmldumpsdir} --newer 5",
interval => {'start' => 'OnCalendar', 'interval' => '*-*-* *:0/5:00',}
}
}
|