Puppet Class: zmbkpose::params

Inherited by:
zmbkpose
Defined in:
manifests/params.pp

Overview



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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'manifests/params.pp', line 1

class zmbkpose::params {
  $dirconf = '/etc/zmbkpose'
  $binzmbkpose = '/usr/local/bin/zmbkpose'
  $confzmbkpose = "${dirconf}/zmbkpose.conf"

  # Configurações do zmbkpose.conf
  $backupuser = 'zimbra'
  $workdir = '/opt/backup'
  $dirlog = "${workdir}/log"
  $logfile = "${dirlog}/backup.log"
  $adminuser = 'admin'
  $adminpass = 'senhadoadmin'
  $ldapmasterserver = $::ipaddress
  $ldapzimbradn = 'uid=zimbra,cn=admins,cn=zimbra'
  $ldapzimbrapass = $::ldap_root_password
  $email_notify = 'suporte@dominio.com'
  $parallel_support = '1'
  $max_parallel_process = '3'
  $removeBackupDias = '15'

  # Cron
  $backupFull = {
    'min'      => '56',
    'hora'     => '2',
    'monthday' => '*',
    'month'    => '*',
    'weekday'  => '6'
  }
  $backupIncr = {
    'min'      => '30',
    'hora'     => '2',
    'monthday' => '*',
    'month'    => '*',
    'weekday'  => '0-5'
  }
  $backupRemove = {
    'min'      => '30',
    'hora'     => '1',
    'monthday' => '*',
    'month'    => '*',
    'weekday'  => '0'
  }

  # Different path and package definitions
  case $::operatingsystem {
    'CentOS' : {
      case $::operatingsystemmajrelease {
        '7' : {
          $crondir = '/etc/cron.d'
          $cronconf = "${crondir}/zimbra"
        }
      }
    }
    default  : {
      $exports_file = undef
      $idmapd_file = undef
      $defaults_file = undef
      $server_packages = undef
      $client_packages = undef
      notice("\"${module_name}\" provides no config directory and package default values for OS family \"${::osfamily}\"")
    }
  }

}