Puppet Class: telegraf::config

Inherits:
telegraf
Defined in:
manifests/config.pp

Overview

Class: telegraf::config

Templated generation of telegraf.conf



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/config.pp', line 5

class telegraf::config inherits telegraf {

  assert_private()

  file { $::telegraf::config_file:
    ensure  => file,
    content => template('telegraf/telegraf.conf.erb'),
    mode    => '0640',
    owner   => 'telegraf',
    group   => 'telegraf',
    notify  => Class['::telegraf::service'],
    require => Class['::telegraf::install'],
  }

}