Puppet Class: profile::backup::storage::common

Defined in:
modules/profile/manifests/backup/storage/common.pp

Overview

Parameters:

  • director (Any) (defaults to: lookup('profile::backup::director'))


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/profile/manifests/backup/storage/common.pp', line 3

class profile::backup::storage::common(
    $director = lookup('profile::backup::director'),
) {
    include profile::base::firewall
    include profile::base::production

    class { 'bacula::storage':
        director           => $director,
        sd_max_concur_jobs => 5,
        sqlvariant         => 'mysql',
    }

    nrpe::monitor_service { 'bacula_sd':
        description  => 'bacula sd process',
        nrpe_command => '/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u bacula -C bacula-sd',
        notes_url    => 'https://wikitech.wikimedia.org/wiki/Bacula',
    }

    ferm::service { 'bacula-storage-demon':
        proto  => 'tcp',
        port   => '9103',
        srange => '$PRODUCTION_NETWORKS',
    }
}