diff --git a/manifests/config.pp b/manifests/config.pp index 2148015..275fee0 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -12,6 +12,7 @@ mode => '0640', owner => 'telegraf', group => 'telegraf', + notify => Class['::telegraf::service'], require => Class['::telegraf::install'], } diff --git a/manifests/service.pp b/manifests/service.pp index 067243d..5ae9a7c 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -11,6 +11,7 @@ ensure => running, hasstatus => true, enable => true, + restart => 'pkill -HUP telegraf', require => Class['::telegraf::config'], } }