Puppet Class: collectd

Inherits:
collectd::params
Inherited by:
collectd::config
Defined in:
manifests/init.pp

Summary

installs and configures collectd

Overview

Examples:

Install collectd utilities

class{'collectd':
  utils => true,
}

Parameters:

  • utils (Boolean) (defaults to: $collectd::params::utils)

    Install collectd utilities package containing collectdctl, collectd-nagios

  • autoloadplugin (Boolean) (defaults to: $collectd::params::autoloadplugin)
  • collectd_hostname (String) (defaults to: $collectd::params::collectd_hostname)
  • conf_content (Optional[String]) (defaults to: $collectd::params::conf_content)
  • config_file (String) (defaults to: $collectd::params::config_file)
  • fqdnlookup (Boolean) (defaults to: $collectd::params::fqdnlookup)
  • has_wordexp (Boolean) (defaults to: $collectd::params::has_wordexp)
  • include (Array) (defaults to: $collectd::params::include)
  • interval (Integer[1]) (defaults to: $collectd::params::interval)
  • internal_stats (Boolean) (defaults to: $collectd::params::internal_stats)
  • manage_package (Boolean) (defaults to: $collectd::params::manage_package)
  • manage_repo (Boolean) (defaults to: $collectd::params::manage_repo)
  • ci_package_repo (Optional[Collectd::Manifests::Init]) (defaults to: $collectd::params::ci_package_repo)
  • manage_service (Boolean) (defaults to: $collectd::params::manage_service)
  • minimum_version (String) (defaults to: $collectd::params::minimum_version)
  • package_ensure (String) (defaults to: $collectd::params::package_ensure)
  • package_install_options (Optional[Array]) (defaults to: $collectd::params::package_install_options)
  • package_keyserver (Stdlib::Fqdn) (defaults to: $collectd::params::package_keyserver)
  • package_name (Variant[String[1],Array[String[1]]]) (defaults to: $collectd::params::package_name)
  • package_provider (Optional[String]) (defaults to: $collectd::params::package_provider)
  • plugin_conf_dir (Stdlib::Absolutepath) (defaults to: $collectd::params::plugin_conf_dir)
  • plugin_conf_dir_mode (String) (defaults to: $collectd::params::plugin_conf_dir_mode)
  • purge (Boolean) (defaults to: $collectd::params::purge)
  • purge_config (Boolean) (defaults to: $collectd::params::purge_config)
  • read_threads (Integer[1]) (defaults to: $collectd::params::read_threads)
  • recurse (Boolean) (defaults to: $collectd::params::recurse)
  • config_group (String) (defaults to: $collectd::params::config_group)
  • config_mode (String) (defaults to: $collectd::params::config_mode)
  • config_owner (String) (defaults to: $collectd::params::config_owner)
  • service_enable (Boolean) (defaults to: $collectd::params::service_enable)
  • service_ensure (String) (defaults to: $collectd::params::service_ensure)
  • service_name (String) (defaults to: $collectd::params::service_name)
  • timeout (Integer[1]) (defaults to: $collectd::params::timeout)
  • typesdb (Array) (defaults to: $collectd::params::typesdb)
  • write_queue_limit_high (Optional[Integer]) (defaults to: $collectd::params::write_queue_limit_high)
  • write_queue_limit_low (Optional[Integer]) (defaults to: $collectd::params::write_queue_limit_low)
  • write_threads (Integer[1]) (defaults to: $collectd::params::write_threads)


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
# File 'manifests/init.pp', line 8

class collectd (
  Boolean $autoloadplugin                              = $collectd::params::autoloadplugin,
  String $collectd_hostname                            = $collectd::params::collectd_hostname,
  Optional[String] $conf_content                       = $collectd::params::conf_content,
  String $config_file                                  = $collectd::params::config_file,
  Boolean $fqdnlookup                                  = $collectd::params::fqdnlookup,
  Boolean $has_wordexp                                 = $collectd::params::has_wordexp,
  Array $include                                       = $collectd::params::include,
  Integer[1] $interval                                 = $collectd::params::interval,
  Boolean $internal_stats                              = $collectd::params::internal_stats,
  Boolean $manage_package                              = $collectd::params::manage_package,
  Boolean $manage_repo                                 = $collectd::params::manage_repo,
  Optional[Collectd::Manifests::Init] $ci_package_repo = $collectd::params::ci_package_repo,
  Boolean $manage_service                              = $collectd::params::manage_service,
  String $minimum_version                              = $collectd::params::minimum_version,
  String $package_ensure                               = $collectd::params::package_ensure,
  Optional[Array] $package_install_options             = $collectd::params::package_install_options,
  Stdlib::Fqdn $package_keyserver                      = $collectd::params::package_keyserver,
  Variant[String[1],Array[String[1]]] $package_name    = $collectd::params::package_name,
  Optional[String] $package_provider                   = $collectd::params::package_provider,
  Stdlib::Absolutepath $plugin_conf_dir                = $collectd::params::plugin_conf_dir,
  String $plugin_conf_dir_mode                         = $collectd::params::plugin_conf_dir_mode,
  Boolean $purge                                       = $collectd::params::purge,
  Boolean $purge_config                                = $collectd::params::purge_config,
  Integer[1] $read_threads                             = $collectd::params::read_threads,
  Boolean $recurse                                     = $collectd::params::recurse,
  String $config_group                                 = $collectd::params::config_group,
  String $config_mode                                  = $collectd::params::config_mode,
  String $config_owner                                 = $collectd::params::config_owner,
  Boolean $service_enable                              = $collectd::params::service_enable,
  String $service_ensure                               = $collectd::params::service_ensure,
  String $service_name                                 = $collectd::params::service_name,
  Integer[1] $timeout                                  = $collectd::params::timeout,
  Array $typesdb                                       = $collectd::params::typesdb,
  Optional[Integer] $write_queue_limit_high            = $collectd::params::write_queue_limit_high,
  Optional[Integer] $write_queue_limit_low             = $collectd::params::write_queue_limit_low,
  Integer[1] $write_threads                            = $collectd::params::write_threads,
  Boolean    $utils                                    = $collectd::params::utils,
) inherits collectd::params {
  $collectd_version_real = pick_default($facts['collectd_version'], $minimum_version)

  contain collectd::repo
  contain collectd::install
  contain collectd::config
  contain collectd::service

  Class['collectd::repo']
  ~> Class['collectd::install']
  -> Class['collectd::config']
  ~> Class['collectd::service']
}