Skip to content

Commit 1ac0d48

Browse files
committed
exec plugin refresh
1 parent 1dff045 commit 1ac0d48

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

manifests/plugin/exec.pp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
$group,
55
$exec = [],
66
$notification_exec = [],
7+
$ensure = present,
8+
$order = '10',
79
) {
810
include collectd::params
911

@@ -12,13 +14,22 @@
1214

1315
$conf_dir = $collectd::params::plugin_conf_dir
1416

17+
# This is deprecated file naming ensuring old style file removed, and should be removed in next major relese
18+
file { "${name}.load-deprecated":
19+
path => "${conf_dir}/${name}.conf",
20+
ensure => absent,
21+
}
22+
# End deprecation
23+
1524
file {
1625
"${name}.load":
17-
path => "${conf_dir}/${name}.conf",
26+
ensure => $ensure,
27+
path => "${conf_dir}/${order}-${name}.conf",
1828
owner => 'root',
1929
group => $collectd::params::root_group,
2030
mode => '0644',
2131
content => template('collectd/exec.conf.erb'),
2232
notify => Service['collectd'],
2333
}
34+
2435
}

0 commit comments

Comments
 (0)