Puppet Class: openstack::wikitech::wikitech_static_sync

Defined in:
modules/openstack/manifests/wikitech/wikitech_static_sync.pp

Overview



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'modules/openstack/manifests/wikitech/wikitech_static_sync.pp', line 2

class openstack::wikitech::wikitech_static_sync {

    file {
        '/srv/backup':
            ensure => 'directory',
            owner  => 'root',
            group  => 'root',
            mode   => '0755';
        '/srv/backup/public':
            ensure => directory,
            mode   => '0755',
            owner  => 'root',
            group  => 'root';
        '/usr/local/sbin/mw-xml.sh':
            mode   => '0555',
            owner  => 'root',
            group  => 'root',
            source => 'puppet:///modules/openstack/wikitech/mw-xml.sh';
    }

    $minute = fqdn_rand(60)

    systemd::timer::job { 'mw-xml':
        ensure          => 'present',
        description     => 'Regular jobs to generate xml dumps',
        user            => 'root',
        command         => '/usr/local/sbin/mw-xml.sh',
        interval        => {'start' => 'OnCalendar', 'interval' => "*-*-* 1:${minute}:00"},
        logging_enabled => false,
        require         => File['/srv/backup/public'];
    }
}