Puppet Class: holland

Defined in:
manifests/init.pp

Summary

Common setup and resources for the Holland Backup Manager

Overview

Common setup and resources for the [Holland Backup Manager](hollandbackup.org/). There isn’t an [Augeas](augeas.net/) lens for ‘holland.conf` in the upstream project yet so we’ll need to provide one ourselves to manage the main configuration from more than one class. Since Puppet requires ‘augeas-libs` we don’t need to manage the parrent directories since they’ll already be in place.

Examples:

Basic

include holland

Parameters:

  • ensure (Enum['absent', 'present']) (defaults to: present)

    Should Holland be installed or not.

  • backup_directory (String) (defaults to: '/var/spool/holland')

    Top-level directory where backups are held.

  • logfile (String) (defaults to: '/var/log/holland/holland.log')

    The file Holland logs to

  • log_level (Enum[ 'debug', 'info', 'warning', 'error', 'critical' ]) (defaults to: 'info')

    Sets the verbosity of Holland’s logging process.

  • path (String) (defaults to: '/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin')

    Defines a path for holland and its spawned processes

  • plugin_dirs (String) (defaults to: '/usr/share/holland/plugins')

    Defines where the plugins can be found. This can be a comma-separated list but usually does not need to be modified.

  • umask (String) (defaults to: '0007')

    Sets the umask of the resulting backup files.



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

class holland (
  Enum['absent', 'present'] $ensure           = present,
  String                    $backup_directory = '/var/spool/holland',
  String                    $logfile          = '/var/log/holland/holland.log',
  Enum[
    'debug',
    'info',
    'warning',
    'error',
    'critical'
  ]                         $log_level        = 'info',
  String                    $path             = '/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin',
  String                    $plugin_dirs      = '/usr/share/holland/plugins',
  String                    $umask            = '0007',
){

  contain ::holland::install

  if $ensure == 'present' {
    contain ::holland::config
    Class['holland::install'] -> Class['holland::config']
  }

}