Puppet Class: collectd::plugin::sensors

Defined in:
manifests/plugin/sensors.pp

Overview

Parameters:

  • ensure (Any) (defaults to: present)
  • sensorconfigfile (Any) (defaults to: undef)
  • sensor (Any) (defaults to: undef)
  • ignoreselected (Any) (defaults to: undef)
  • interval (Any) (defaults to: undef)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/plugin/sensors.pp', line 2

class collectd::plugin::sensors (
  $ensure           = present,
  $sensorconfigfile = undef,
  $sensor           = undef,
  $ignoreselected   = undef,
  $interval         = undef,
) {

  if $::osfamily == 'Redhat' {
    package { 'collectd-sensors':
      ensure => $ensure,
    }
  }

  collectd::plugin {'sensors':
    ensure   => $ensure,
    content  => template('collectd/plugin/sensors.conf.erb'),
    interval => $interval,
  }
}