Puppet Class: icinga::redis::globals

Defined in:
manifests/redis/globals.pp

Summary

Overview

This class loads the default parameters by doing a hiera lookup.

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.

Note:

Parameters:

  • package_name (String)

    The package name of Icinga Redis.

  • redis_bin (Stdlib::Absolutepath)

    Path to the redis binary.

  • conf_dir (Stdlib::Absolutepath)

    Path to the directory in which the main configuration files reside.

  • log_dir (Stdlib::Absolutepath)

    Path to the directory in which the log files reside.

  • run_dir (Stdlib::Absolutepath)

    Location to store pid files.

  • work_dir (Stdlib::Absolutepath)

    Path to the base working directory.

  • user (String)

    User who ownes the config files.

  • group (String)

    Group to which the files belong.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'manifests/redis/globals.pp', line 36

class icinga::redis::globals(
  String                 $package_name,
  Stdlib::Absolutepath   $redis_bin,
  Stdlib::Absolutepath   $conf_dir,
  Stdlib::Absolutepath   $log_dir,
  Stdlib::Absolutepath   $run_dir,
  Stdlib::Absolutepath   $work_dir,
  String                 $user,
  String                 $group,
) {

  unless $::facts['os']['name'] in [ 'redhat', 'centos', 'debian', 'ubuntu' ] {
    fail("Your platform ${::facts['os']['name']} is not supported.")
  }
}