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
20
21
22
23
24
25
26
27
28
29
30
31
# 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'),
      owner   => $::telegraf::config_file_owner,
      group   => $::telegraf::config_file_group,
      mode    => '0640',
      notify  => Class['::telegraf::service'],
      require => Class['::telegraf::install'],
    ;
    $::telegraf::config_folder:
      ensure  => directory,
      owner   => $::telegraf::config_file_owner,
      group   => $::telegraf::config_file_group,
      mode    => '0770',
      purge   => $::telegraf::purge_config_fragments,
      recurse => true,
      notify  => Class['::telegraf::service'],
      require => Class['::telegraf::install'],
    ;
  }

}