Puppet Class: toil::systemd_scope_cleanup
- Defined in:
- modules/toil/manifests/systemd_scope_cleanup.pp
Overview
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'modules/toil/manifests/systemd_scope_cleanup.pp', line 5
class toil::systemd_scope_cleanup (
Wmflib::Ensure $ensure = 'present',
) {
$minute = fqdn_rand(59, "toil_${title}")
systemd::timer::job { 'systemd_scope_cleanup':
ensure => $ensure,
description => 'Regular jobs to cleanup systemd session scope',
user => 'root',
command => '/bin/systemctl reset-failed \*.scope',
interval => {'start' => 'OnCalendar', 'interval' => "*-*-* *:${minute}:00"},
}
}
|