Puppet Class: bacula

Inherited by:
bacula::client
bacula::storage
bacula::director
Defined in:
manifests/init.pp

Summary

Main class

Overview

This class is here to hold the data about a bacula instalation. The parameters in this class are intended to be configured through hiera. Other module classes will reference the values here.

TODO:

director_address is confusing, and is only used by the bconsole template; Document the use of storage_name; Document the use of director_name

Examples:

include bacula

Parameters:

  • conf_dir (String)

    The path to the bacula configuration directory

  • bacula_user (String)

    The posix user for bacula

  • bacula_group (String)

    The posix group for bacula

  • homedir (String)

    The bacula user’s home directory path

  • rundir (String)

    The run dir for the daemons

  • director_address (String)

    The default address of the director used by bconsole

  • director_name (String)

    The default director name

  • storage_name (String)

    The default storage name

  • db_type (String) (defaults to: 'pgsql')

    The database provider used by Bacula

  • homedir_mode (String) (defaults to: '0770')

    The bacula user’s home director mode

  • monitor (Bacula::Yesno) (defaults to: true)

    Enable the Bacula Monitor option

  • device_seltype (String) (defaults to: 'bacula_store_t')

    SELinux type for the device

  • tls_enable (Optional[Bacula::Yesno]) (defaults to: undef)

    Enable TLS support

  • tls_require (Optional[Bacula::Yesno]) (defaults to: undef)

    Require TLS connections

  • tls_certificate (Optional[String]) (defaults to: undef)

    The full path and filename of a PEM encoded TLS certificate

  • tls_key (Optional[String]) (defaults to: undef)

    The full path and filename of a PEM encoded TLS private key

  • tls_verify_peer (Optional[Bacula::Yesno]) (defaults to: undef)

    Verify peer certificate

  • tls_allowed_cn (Array[String]) (defaults to: [])

    Common name attribute of allowed peer certificates

  • tls_ca_certificate_file (Optional[String]) (defaults to: undef)

    The full path and filename specifying a PEM encoded TLS CA certificate(s)

  • tls_ca_certificate_dir (Optional[String]) (defaults to: undef)

    Full path to TLS CA certificate directory

  • tls_dh_file (Optional[String]) (defaults to: undef)

    Path to PEM encoded Diffie-Hellman parameter file

  • job_tag (Optional[String]) (defaults to: undef)

    A tag to add to all job resources



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'manifests/init.pp', line 35

class bacula (
  String                  $conf_dir,
  String                  $bacula_user,
  String                  $bacula_group,
  String                  $homedir,
  String                  $rundir,
  String                  $director_address,
  String                  $director_name,
  String                  $storage_name,
  String                  $db_type                 = 'pgsql',
  String                  $homedir_mode            = '0770',
  Bacula::Yesno           $monitor                 = true,
  String                  $device_seltype          = 'bacula_store_t',
  Optional[Bacula::Yesno] $tls_enable              = undef,
  Optional[Bacula::Yesno] $tls_require             = undef,
  Optional[String]        $tls_certificate         = undef,
  Optional[String]        $tls_key                 = undef,
  Optional[Bacula::Yesno] $tls_verify_peer         = undef,
  Array[String]           $tls_allowed_cn          = [],
  Optional[String]        $tls_ca_certificate_file = undef,
  Optional[String]        $tls_ca_certificate_dir  = undef,
  Optional[String]        $tls_dh_file             = undef,
  Optional[String]        $job_tag                 = undef,
) {
  # Do nothing
}