Defined Type: backup::openldapset

Defined in:
modules/backup/manifests/openldapset.pp

Overview



1
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
# File 'modules/backup/manifests/openldapset.pp', line 1

define backup::openldapset(){

    file { '/etc/bacula/scripts/openldap-pre':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0500',
        source => 'puppet:///modules/backup/openldap-pre',
    }

    file { '/etc/bacula/scripts/openldap-post':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0500',
        source => 'puppet:///modules/backup/openldap-post',
    }

    $run_scripts = {
        'ClientRunBeforeJob' => '/etc/bacula/scripts/openldap-pre',
        'ClientRunAfterJob' => '/etc/bacula/scripts/openldap-post',
    }
    backup::set { 'openldap':
        extras      => $run_scripts,
    }
}