Defined Type: bacula::director::jobdefaults

Defined in:
modules/bacula/manifests/director/jobdefaults.pp

Overview

Definition: bacula::director::jobdefaults

Create a jobdefaults definition

Parameters:

$when
    An already defined schedule to use
$pool
    An already defined pool where backups will end up in
$type
    Backup (default), Restore, Verify, Migrate, Copy
$accurate
    yes, no (default). Whether the backup will accurately reflect the filesystem state
$spool_data
    yes, no (default). Whether the storage daemon will spool data for this
    pool (if possible)
$priority
    An arbitrary number. Lower means more urgent

Actions:

Will create a job defaults definition using the given defaults

Requires:

bacula::director

Sample Usage:

bacula::director::jobdefaults { '1st-sat-mypool':
    schedule    => '1st-Sat',
    pool        => 'mypool',
}

Parameters:

  • when (Any)
  • pool (Any)
  • type (Any) (defaults to: 'Backup')
  • accurate (Any) (defaults to: 'no')
  • spool_data (Any) (defaults to: 'no')
  • priority (Any) (defaults to: '10')


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'modules/bacula/manifests/director/jobdefaults.pp', line 31

define bacula::director::jobdefaults(
    $when,
    $pool,
    $type='Backup',
    $accurate='no',
    $spool_data='no',
    $priority='10',
) {
    file { "/etc/bacula/conf.d/jobdefaults-${name}.conf":
        ensure  => present,
        owner   => 'root',
        group   => 'bacula',
        mode    => '0440',
        content => template('bacula/bacula-dir-jobdefaults.erb'),
        notify  => Service['bacula-director'],
    }
}