diff --git a/manifests/plugin/curl_json.pp b/manifests/plugin/curl_json.pp index 82313726e..79e82cfce 100644 --- a/manifests/plugin/curl_json.pp +++ b/manifests/plugin/curl_json.pp @@ -5,6 +5,7 @@ $keys, $user = undef, $password = undef, + $order = '10', ) { include collectd::params @@ -12,12 +13,19 @@ $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", + path => "${conf_dir}/${order}-${name}.conf", owner => 'root', group => $collectd::params::root_group, - mode => '0644', + mode => '0640', content => template('collectd/curl_json.conf.erb'), notify => Service['collectd'], }