Skip to content

Commit

Permalink
Update runner.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Jan 23, 2025
1 parent 1ad7f60 commit f6b6cc3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions modules/mediawiki/manifests/jobqueue/runner.pp
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,40 @@
user => 'www-data',
require => File['/var/log/mediawiki/cron'],
}

stdlib::ensure_packages(['python3-internetarchive'])

file { '/usr/local/bin/iaupload':
ensure => present,
mode => '0755',
source => 'puppet:///modules/mediawiki/bin/iaupload.py',
}

file { '/usr/local/bin/backupwikis':
ensure => 'present',
mode => '0755',
source => 'puppet:///modules/mediawiki/bin/backupwikis',
}

file { '/opt/backups':
ensure => directory,
owner => 'www-data',
group => 'www-data',
mode => '0755',
}

systemd::timer::job { 'backup-all-wikis-ia':
description => 'Backups all wikis for IA',
command => '/usr/local/bin/backupwikis /srv/mediawiki/cache/public.php',
interval => {
'start' => 'OnCalendar',
'interval' => 'monthly',
},
logfile_basedir => '/var/log/mediawiki/cron',
logfile_name => 'iabackup-backup.log',
syslog_identifier => 'iabackup-backup',
user => 'www-data',
require => File['/var/log/mediawiki/cron'],
}
}
}

0 comments on commit f6b6cc3

Please sign in to comment.