Puppet Class: bacula::dir

Inherits:
bacula::params
Inherited by:
bacula::dir::config
bacula::dir::install
bacula::dir::service
Defined in:
manifests/dir.pp

Overview

Parameters:

  • manage_package (Any) (defaults to: true)
  • package_ensure (Any) (defaults to: 'installed')
  • manage_service (Any) (defaults to: true)
  • manage_docker_service (Any) (defaults to: true)
  • service_ensure (Any) (defaults to: 'running')
  • service_enable (Any) (defaults to: true)
  • director_name (Any) (defaults to: $::fqdn)
  • max_concurrent_jobs (Any) (defaults to: '20')
  • director_password (Any) (defaults to: 'dmlzY2EgY2F0YWx1bnlhIGxsaXVyZQo')
  • port (Any) (defaults to: '9101')
  • diraddr (Any) (defaults to: undef)
  • bacula_log (Any) (defaults to: '/var/log/bacula/bacula.log')
  • baculalog_frequency (Any) (defaults to: 'daily')
  • baculalog_rotate (Any) (defaults to: '15')
  • baculalog_size (Any) (defaults to: '100M')
  • baculalog_logrotate_ensure (Any) (defaults to: 'present')
  • mail_from (Any) (defaults to: "bacula@${::fqdn}")
  • mailto_notification (Any) (defaults to: "bacula@${::fqdn}")
  • mailto_operator (Any) (defaults to: "bacula@${::fqdn}")
  • mailto_daemon_notifications (Any) (defaults to: "bacula@${::fqdn}")
  • notification_subject (Any) (defaults to: 'Bacula: %t %e of %c %l')
  • operator_subject (Any) (defaults to: 'Bacula: Intervention needed for %j')
  • daemon_subject (Any) (defaults to: 'Bacula daemon message')
  • debug_level (Any) (defaults to: undef)
  • setup_mysql (Any) (defaults to: true)
  • root_db_password (Any) (defaults to: 'dmlzY2EgY2F0YWx1bnlhIGxsaXVyZQo')


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
29
30
31
32
33
34
35
36
# File 'manifests/dir.pp', line 1

class bacula::dir (
                    $manage_package              = true,
                    $package_ensure              = 'installed',
                    $manage_service              = true,
                    $manage_docker_service       = true,
                    $service_ensure              = 'running',
                    $service_enable              = true,
                    $director_name               = $::fqdn,
                    $max_concurrent_jobs         = '20',
                    $director_password           = 'dmlzY2EgY2F0YWx1bnlhIGxsaXVyZQo',
                    $port                        = '9101',
                    $diraddr                     = undef,
                    $bacula_log                  = '/var/log/bacula/bacula.log',
                    $baculalog_frequency         = 'daily',
                    $baculalog_rotate            = '15',
                    $baculalog_size              = '100M',
                    $baculalog_logrotate_ensure  = 'present',
                    $mail_from                   = "bacula@${::fqdn}",
                    $mailto_notification         = "bacula@${::fqdn}",
                    $mailto_operator             = "bacula@${::fqdn}",
                    $mailto_daemon_notifications = "bacula@${::fqdn}",
                    $notification_subject        = 'Bacula: %t %e of %c %l',
                    $operator_subject            = 'Bacula: Intervention needed for %j',
                    $daemon_subject              = 'Bacula daemon message',
                    $debug_level                 = undef,
                    $setup_mysql                 = true,
                    $root_db_password            = 'dmlzY2EgY2F0YWx1bnlhIGxsaXVyZQo',
                  ) inherits bacula::params {

  validate_re($package_ensure, [ '^present$', '^installed$', '^absent$', '^purged$', '^held$', '^latest$' ], 'Not a supported package_ensure: present/absent/purged/held/latest')

  class { '::bacula::dir::install': }
  -> class { '::bacula::dir::config': }
  ~> class { '::bacula::dir::service': }
  -> Class['::bacula::dir']
}