From 1ac0d48218001182eff0de209476796032cc1f3e Mon Sep 17 00:00:00 2001 From: Zdenek Janda Date: Thu, 25 Dec 2014 21:15:51 +0100 Subject: [PATCH] exec plugin refresh --- manifests/plugin/exec.pp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/manifests/plugin/exec.pp b/manifests/plugin/exec.pp index e5eb4b3a4..873dac9f5 100644 --- a/manifests/plugin/exec.pp +++ b/manifests/plugin/exec.pp @@ -4,6 +4,8 @@ $group, $exec = [], $notification_exec = [], + $ensure = present, + $order = '10', ) { include collectd::params @@ -12,13 +14,22 @@ $conf_dir = $collectd::params::plugin_conf_dir + # This is deprecated file naming ensuring old style file removed, and should be removed in next major relese + file { "${name}.load-deprecated": + path => "${conf_dir}/${name}.conf", + ensure => absent, + } + # End deprecation + file { "${name}.load": - path => "${conf_dir}/${name}.conf", + ensure => $ensure, + path => "${conf_dir}/${order}-${name}.conf", owner => 'root', group => $collectd::params::root_group, mode => '0644', content => template('collectd/exec.conf.erb'), notify => Service['collectd'], } + }