Defined Type: bacula::schedule

Defined in:
manifests/schedule.pp

Summary

Define a Bacula Schedule

Overview

Creates a schedule to which jobs and jobdefs can adhere.

Examples:

bacula::schedule { 'Regularly':
  runs => [
    'Level=Incremental monday-saturday at 12:15',
    'Level=Incremental monday-saturday at 0:15',
    'Level=Full sunday at 0:05',
  ]
}

Parameters:

  • runs (Array[String[1]])

    A list of Bacula Run directives

  • conf_dir (Stdlib::Absolutepath) (defaults to: $bacula::conf_dir)

    Path to bacula configuration directory



17
18
19
20
21
22
23
24
25
# File 'manifests/schedule.pp', line 17

define bacula::schedule (
  Array[String[1]]     $runs,
  Stdlib::Absolutepath $conf_dir = $bacula::conf_dir,
) {
  concat::fragment { "bacula-schedule-${name}":
    target  => "${conf_dir}/conf.d/schedule.conf",
    content => epp('bacula/schedule.conf.epp', { name => $title, runs => $runs }),
  }
}