Puppet Class: collectd::plugin::write_log

Defined in:
manifests/plugin/write_log.pp

Overview

Parameters:

  • format (Any) (defaults to: 'JSON')
  • ensure (Any) (defaults to: 'present')
  • interval (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/plugin/write_log.pp', line 1

class collectd::plugin::write_log (
  $format   = 'JSON',
  $ensure   = 'present',
  $interval = undef,
) {

  include ::collectd

  validate_string($format)

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