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
# 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';
    }

    cron {
        'mw-xml':
            ensure  => 'present',
            user    => 'root',
            hour    => 1,
            minute  => fqdn_rand(60),
            command => '/usr/local/sbin/mw-xml.sh > /dev/null 2>&1',
            require => File['/srv/backup/public'];
    }
}