Puppet Class: dbbackups::check_common

Defined in:
modules/dbbackups/manifests/check_common.pp

Overview

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'modules/dbbackups/manifests/check_common.pp', line 15

class dbbackups::check_common (
    Stdlib::Unixpath $config_file,
    String $valid_sections_file,
    String $db_user,
    String $db_host,
    String $db_password,
    String $db_database,
){
    ensure_packages('wmfbackups-check')
    group { 'backupcheck':
        ensure => present,
        system => true,
    }

    user { 'backupcheck':
        ensure     => present,
        gid        => 'backupcheck',
        shell      => '/bin/false',
        home       => '/etc/wmfbackups',
        system     => true,
        managehome => false,
    }

    file { '/etc/wmfbackups/valid_sections.txt':
        ensure  => present,
        source  => $valid_sections_file,
        mode    => '0644',
        owner   => 'root',
        group   => 'root',
        require => [ Package['wmfbackups-check'] ],
    }

    file { $config_file:
        ensure  => present,
        mode    => '0440',
        owner   => 'root',
        group   => 'backupcheck',
        content => template('dbbackups/backups_check.ini.erb'),
        require => [ Group['backupcheck'] ],
    }
}