Puppet Class: icinga2::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])

    The name of the icinga package to manage.

  • service_name (String[1])

    The name of the icinga service to manage.

  • user (Optional[String[1]]) (defaults to: undef)

    User as the icinga process runs. CAUTION: This does not manage the user context for the runnig icinga 2 process! The parameter is only used for ownership of files or directories.

  • group (Optional[String[1]]) (defaults to: undef)

    Group as the icinga process runs. CAUTION: This does not manage the group context for the runnig icinga 2 process! The parameter is only used for group membership of files or directories.

  • logon_account (Optional[String[1]]) (defaults to: undef)

    The user context in which the service should run. ATM only relevant on Windows.

  • selinux_package_name (Optional[String[1]]) (defaults to: undef)

    The name of the icinga selinux package.

  • ido_mysql_package_name (Optional[String[1]]) (defaults to: undef)

    The name of the icinga package that’s needed for MySQL.

  • ido_mysql_schema (String[1])

    Path to the MySQL schema to import.

  • ido_pgsql_package_name (Optional[String[1]]) (defaults to: undef)

    The name of the icinga package that’s needed for Postrgesql.

  • ido_pgsql_schema (String[1])

    Path to the Postgresql schema to import.

  • icinga2_bin (Stdlib::Absolutepath)

    Path to the icinga2 binary.

  • conf_dir (Stdlib::Absolutepath)

    Location of the configuration directory of Icinga.

  • lib_dir (Stdlib::Absolutepath)

    Path to the directory contained the system libs.

  • log_dir (Stdlib::Absolutepath)

    Location to store Icinga log files.

  • run_dir (Stdlib::Absolutepath)

    Runtime directory of Icinga.

  • spool_dir (Stdlib::Absolutepath)

    Path to spool files of Icinga.

  • cache_dir (Stdlib::Absolutepath)

    Path to cache files of Icinga.

  • data_dir (Stdlib::Absolutepath)

    Path to data files of Icinga.

  • cert_dir (Stdlib::Absolutepath)

    Path to the directory where Icinga stores keys and certificates.

  • ca_dir (Stdlib::Absolutepath)

    Path to CA.

  • service_reload (Optional[String[1]]) (defaults to: undef)

    How to do a reload of the Icinga process.

  • reserved (Array[String[1]])


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
# File 'manifests/globals.pp', line 76

class icinga2::globals (
  String[1]              $package_name,
  String[1]              $service_name,
  String[1]              $ido_mysql_schema,
  String[1]              $ido_pgsql_schema,
  Stdlib::Absolutepath   $icinga2_bin,
  Stdlib::Absolutepath   $conf_dir,
  Stdlib::Absolutepath   $lib_dir,
  Stdlib::Absolutepath   $log_dir,
  Stdlib::Absolutepath   $run_dir,
  Stdlib::Absolutepath   $spool_dir,
  Stdlib::Absolutepath   $cache_dir,
  Stdlib::Absolutepath   $data_dir,
  Stdlib::Absolutepath   $cert_dir,
  Stdlib::Absolutepath   $ca_dir,
  Array[String[1]]       $reserved,
  Optional[String[1]]    $user                   = undef,
  Optional[String[1]]    $group                  = undef,
  Optional[String[1]]    $logon_account          = undef,
  Optional[String[1]]    $selinux_package_name   = undef,
  Optional[String[1]]    $ido_mysql_package_name = undef,
  Optional[String[1]]    $ido_pgsql_package_name = undef,
  Optional[String[1]]    $service_reload         = undef,
) {
  assert_private()

  $constants =  lookup('icinga2::globals::constants', Hash, 'deep', {})
}