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 |
# File 'manifests/service.pp', line 5
class telegraf::service {
assert_private()
if $telegraf::manage_service and $telegraf::ensure != 'absent' {
service { 'telegraf':
ensure => $telegraf::service_ensure,
hasstatus => $telegraf::service_hasstatus,
enable => $telegraf::service_enable,
restart => $telegraf::service_restart,
}
}
}
|