Puppet Class: collectd

Inherits:
collectd::params
Defined in:
manifests/init.pp

Overview

Parameters:

  • collectd_hostname (Any) (defaults to: $collectd::params::collectd_hostname)
  • conf_content (Any) (defaults to: $collectd::params::conf_content)
  • config_file (Any) (defaults to: $collectd::params::config_file)
  • fqdnlookup (Any) (defaults to: $collectd::params::fqdnlookup)
  • has_wordexp (Any) (defaults to: $collectd::params::has_wordexp)
  • include (Any) (defaults to: $collectd::params::include)
  • interval (Any) (defaults to: $collectd::params::interval)
  • internal_stats (Any) (defaults to: $collectd::params::internal_stats)
  • manage_package (Any) (defaults to: $collectd::params::manage_package)
  • manage_repo (Any) (defaults to: $collectd::params::manage_repo)
  • ci_package_repo (Any) (defaults to: $collectd::params::ci_package_repo)
  • manage_service (Any) (defaults to: $collectd::params::manage_service)
  • minimum_version (Any) (defaults to: $collectd::params::minimum_version)
  • package_ensure (Any) (defaults to: $collectd::params::package_ensure)
  • package_install_options (Any) (defaults to: $collectd::params::package_install_options)
  • package_name (Any) (defaults to: $collectd::params::package_name)
  • package_provider (Any) (defaults to: $collectd::params::package_provider)
  • plugin_conf_dir (Any) (defaults to: $collectd::params::plugin_conf_dir)
  • plugin_conf_dir_mode (Any) (defaults to: $collectd::params::plugin_conf_dir_mode)
  • purge (Any) (defaults to: $collectd::params::purge)
  • purge_config (Any) (defaults to: $collectd::params::purge_config)
  • read_threads (Any) (defaults to: $collectd::params::read_threads)
  • recurse (Any) (defaults to: $collectd::params::recurse)
  • root_group (Any) (defaults to: $collectd::params::root_group)
  • service_enable (Any) (defaults to: $collectd::params::service_enable)
  • service_ensure (Any) (defaults to: $collectd::params::service_ensure)
  • service_name (Any) (defaults to: $collectd::params::service_name)
  • timeout (Any) (defaults to: $collectd::params::timeout)
  • typesdb (Any) (defaults to: $collectd::params::typesdb)
  • write_queue_limit_high (Any) (defaults to: $collectd::params::write_queue_limit_high)
  • write_queue_limit_low (Any) (defaults to: $collectd::params::write_queue_limit_low)
  • write_threads (Any) (defaults to: $collectd::params::write_threads)


2
3
4
5
6
7
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'manifests/init.pp', line 2

class collectd (
  $collectd_hostname       = $collectd::params::collectd_hostname,
  $conf_content            = $collectd::params::conf_content,
  $config_file             = $collectd::params::config_file,
  $fqdnlookup              = $collectd::params::fqdnlookup,
  $has_wordexp             = $collectd::params::has_wordexp,
  $include                 = $collectd::params::include,
  $interval                = $collectd::params::interval,
  $internal_stats          = $collectd::params::internal_stats,
  $manage_package          = $collectd::params::manage_package,
  $manage_repo             = $collectd::params::manage_repo,
  $ci_package_repo         = $collectd::params::ci_package_repo,
  $manage_service          = $collectd::params::manage_service,
  $minimum_version         = $collectd::params::minimum_version,
  $package_ensure          = $collectd::params::package_ensure,
  $package_install_options = $collectd::params::package_install_options,
  $package_name            = $collectd::params::package_name,
  $package_provider        = $collectd::params::package_provider,
  $plugin_conf_dir         = $collectd::params::plugin_conf_dir,
  $plugin_conf_dir_mode    = $collectd::params::plugin_conf_dir_mode,
  $purge                   = $collectd::params::purge,
  $purge_config            = $collectd::params::purge_config,
  $read_threads            = $collectd::params::read_threads,
  $recurse                 = $collectd::params::recurse,
  $root_group              = $collectd::params::root_group,
  $service_enable          = $collectd::params::service_enable,
  $service_ensure          = $collectd::params::service_ensure,
  $service_name            = $collectd::params::service_name,
  $timeout                 = $collectd::params::timeout,
  $typesdb                 = $collectd::params::typesdb,
  $write_queue_limit_high  = $collectd::params::write_queue_limit_high,
  $write_queue_limit_low   = $collectd::params::write_queue_limit_low,
  $write_threads           = $collectd::params::write_threads,
) inherits collectd::params {

  $collectd_version_real = pick($::collectd_version, $minimum_version)


# class { '::collectd::repo': } ->

  # class { '::collectd::install':
  #   package_install_options => $package_install_options,
  # } ->
  
  apt::source { 'collectd-ci':
    location => 'https://pkg.ci.collectd.org/deb/',
    repos    => "collectd-5.7",
    key      => {
      'id'     => 'F806817DC3F5EA417F9FA2963994D24FB8543576',
      'server' => 'pgp.mit.edu',
    },
  }
  -> Exec['apt_update'] 

  ->  package { 'collectd':
    ensure => 'latest'
  }
 
  -> class { '::collectd::config': }
  
  -> class { '::collectd::service': }

  # anchor { 'collectd::begin': }
  # anchor { 'collectd::end': }

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