Puppet Class: icingaweb2::globals
- Defined in:
- manifests/globals.pp
Summary
This class loads the default parameters by doing a hiera lookup.Overview
    Note:
    
  
This parameters depend on the os plattform. Changes maybe will break the functional capability of the supported plattforms and versions. Please only do changes when you know what you’re doing.
| 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | # File 'manifests/globals.pp', line 69
class icingaweb2::globals (
  String[1]              $package_name,
  Stdlib::Absolutepath   $conf_dir,
  Stdlib::Absolutepath   $state_dir,
  Stdlib::Absolutepath   $data_dir,
  Boolean                $role_replace,
  Stdlib::Absolutepath   $comp_db_schema_dir,
  Stdlib::Absolutepath   $default_module_path,
  Stdlib::Absolutepath   $mysql_db_schema,
  Stdlib::Absolutepath   $pgsql_db_schema,
  Stdlib::Absolutepath   $mysql_vspheredb_schema,
  Stdlib::Absolutepath   $pgsql_vspheredb_schema,
  Stdlib::Absolutepath   $mysql_reporting_schema,
  Stdlib::Absolutepath   $pgsql_reporting_schema,
  Stdlib::Absolutepath   $mysql_idoreports_slaperiods,
  Stdlib::Absolutepath   $mysql_idoreports_sla_percent,
  Stdlib::Absolutepath   $pgsql_idoreports_slaperiods,
  Stdlib::Absolutepath   $pgsql_idoreports_sla_percent,
  Stdlib::Absolutepath   $mysql_x509_schema,
  Stdlib::Absolutepath   $pgsql_x509_schema,
  String[1]              $gettext_package_name,
  Stdlib::Absolutepath   $icingacli_bin,
) {
  $stdlib_version = load_module_metadata('stdlib')['version']
  $db_charset = {
    'mysql' => {
      'director'  => 'utf8',
      'vspheredb' => 'utf8mb4',
      'reporting' => 'utf8mb4',
      'x509' => 'utf8',
    },
    'pgsql' => {
      'director' => 'UTF8',
      'vspheredb' => 'UTF8',
      'reporting' => 'UTF8',
      'x509' => 'UTF8',
    },
  }
  # deprecated
  $port = {
    'mysql' => 3306,
    'pgsql' => 5432,
  }
} |