Puppet Class: telegraf::service

Defined in:
manifests/service.pp

Overview

Class: telegraf::service

Optionally manage the Telegraf service.



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

class telegraf::service {

  assert_private()

  if $::telegraf::manage_service {
    service { 'telegraf':
      ensure    => running,
      hasstatus => true,
      enable    => true,
      restart   => 'pkill -HUP telegraf',
      require   => Class['::telegraf::config'],
    }
  }
}