Puppet Class: idm::jobs

Defined in:
modules/idm/manifests/jobs.pp

Overview

Parameters:

  • present (Wmflib::Ensure)
  • user (String)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/idm/manifests/jobs.pp', line 3

class idm::jobs (
    Wmflib::Ensure $present,
    String         $user
){
    systemd::timer::job { 'sync_bitu_username_block':
        ensure      => $present,
        description => 'Update blocklist with data from meta and wikitech',
        user        => $user,
        command     => '/usr/bin/bitu blocklist_wmf',
        interval    => {'start' => 'OnCalendar', 'interval' => '*-*-* 06:00'},
    }

    systemd::timer::job { 'expire_bitu_signups':
        ensure      => $present,
        description => 'Delete signup requests that have not been activated for 5 days',
        user        => $user,
        command     => '/usr/bin/bitu deleteexpired 5',
        interval    => {'start' => 'OnCalendar', 'interval' => '*-*-* 07:00'},
    }
}