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.

Parameters:

  • package_name (String[1])

    Package to install.

  • conf_dir (Stdlib::Absolutepath)

    Path to the config files.

  • state_dir (Stdlib::Absolutepath)

    Path to variable application data.

  • data_dir (Stdlib::Absolutepath)

    Location of PHP data files.

  • role_replace (Boolean)

    Specifies whether to overwrite the roles.ini file if it already exists.

  • comp_db_schema_dir (Stdlib::Absolutepath)

    For compatibility, since in Icinga Web 2 2.11.4 the schema files have been moved.

  • default_module_path (Stdlib::Absolutepath)

    Location of the modules.

  • mysql_db_schema (Stdlib::Absolutepath)

    Location of the database schema for MySQL/MariaDB.

  • pgsql_db_schema (Stdlib::Absolutepath)

    Location of the database schema for PostgreSQL.

  • mysql_vspheredb_schema (Stdlib::Absolutepath)

    Location of the vspheredb database schema for MySQL/MariaDB.

  • pgsql_vspheredb_schema (Stdlib::Absolutepath)

    Location of the vspheredb database schema for PostgreSQL.

  • mysql_reporting_schema (Stdlib::Absolutepath)

    Location of the reporting database schema for MySQL/MariaDB.

  • pgsql_reporting_schema (Stdlib::Absolutepath)

    Location of the reporting database schema for PostgreSQL.

  • mysql_idoreports_slaperiods (Stdlib::Absolutepath)

    Location of the slaperiods database extension for MySQL.

  • mysql_idoreports_sla_percent (Stdlib::Absolutepath)

    Location of the get_sla_ok_percent database extension for MySQL.

  • pgsql_idoreports_slaperiods (Stdlib::Absolutepath)

    Location of the slaperiods database extension for PostgreSQL.

  • pgsql_idoreports_sla_percent (Stdlib::Absolutepath)

    Location of the get_sla_ok_percent database extension for PostgreSQL.

  • mysql_x509_schema (Stdlib::Absolutepath)

    Location of the x509 database schema for MySQL/MariaDB.

  • pgsql_x509_schema (Stdlib::Absolutepath)

    Location of the x509 database schema for PostgreSQL.

  • gettext_package_name (String[1])

    Package name ‘gettext` tool belongs to.

  • icingacli_bin (Stdlib::Absolutepath)

    Path to ‘icingacli’ comand line tool.



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,
  }
}