Puppet Class: profile::wmcs::nfs::backup::primary::tools

Defined in:
modules/profile/manifests/wmcs/nfs/backup/primary/tools.pp

Overview

Parameters:

  • passive_server (String) (defaults to: lookup( 'profile::wmcs::nfs::primary::passive_server', String, 'first', 'labstore1005.eqiad.wmnet' ))
  • backup_interval (String) (defaults to: lookup( 'profile::wmcs::nfs::primary_backup::tools::backup_interval', ))


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
27
28
# File 'modules/profile/manifests/wmcs/nfs/backup/primary/tools.pp', line 1

class profile::wmcs::nfs::backup::primary::tools (
    String $passive_server = lookup(
        'profile::wmcs::nfs::primary::passive_server',
        String,
        'first',
        'labstore1005.eqiad.wmnet'
    ),
    String $backup_interval = lookup(
        'profile::wmcs::nfs::primary_backup::tools::backup_interval',
    ),
){
    file { '/srv/backup/tools':
        ensure  => 'directory',
        require => File['/srv/backup'],
    }

    labstore::device_backup { 'primary-tools':
        remotehost          => $passive_server,
        remote_vg           => 'tools',
        remote_lv           => 'tools-project',
        remote_snapshot     => 'tools-snap',
        local_vg            => 'backup',
        local_lv            => 'tools-project',
        local_snapshot      => 'tools-project-backup',
        local_snapshot_size => '2T',
        interval            => $backup_interval,
    }
}