Puppet Class: bacula::params

Defined in:
manifests/params.pp

Overview

Class: bacula::params

Default values for parameters needed to configure the bacula class.

Parameters

None

Examples

include ::bacula::params

Copyright 2012 Russell Harrison

License

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.



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
65
66
67
68
69
70
71
72
73
74
75
# File 'manifests/params.pp', line 31

class bacula::params {
  $bat_console_package         = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => 'bacula-console-qt',
    default           => 'bacula-console-bat',
  }
  $console_package             = 'bacula-console'
  $director_mysql_package      = 'bacula-director-mysql'
  $director_postgresql_package = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => 'bacula-director-pgsql',
    default           => 'bacula-director-postgresql',
  }
  $director_server_default     = "bacula.${::domain}"
  $director_service            = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => 'bacula-director',
    default           => 'bacula-dir',
  }
  $director_sqlite_package     = 'bacula-director-sqlite'
  $lib    = $::architecture ? {
    x86_64  => 'lib64',
    default => 'lib',
  }
  $libdir = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => '/usr/lib',
    default           => "/usr/${lib}",
  }
  $mail_to_default             = "root@${::fqdn}"
  $manage_logwatch = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => false,
    default           => true,
  }
  $plugin_dir           = "${libdir}/bacula"
  $storage_mysql_package       = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => 'bacula-sd-mysql',
    default           => 'bacula-storage-mysql',
  }
  $storage_postgresql_package  = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => 'bacula-sd-pgsql',
    default           => 'bacula-storage-postgresql',
  }
  $storage_server_default      = "bacula.${::domain}"
  $storage_sqlite_package = $::operatingsystem ? {
    /(Debian|Ubuntu)/ => 'bacula-sd-sqlite',
    default           => 'bacula-storage-sqlite',
  }
}