Skip to content

Commit

Permalink
exec plugin refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenekjanda committed Dec 25, 2014
1 parent 1dff045 commit 1ac0d48
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion manifests/plugin/exec.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
$group,
$exec = [],
$notification_exec = [],
$ensure = present,
$order = '10',
) {
include collectd::params

Expand All @@ -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'],
}

}

0 comments on commit 1ac0d48

Please sign in to comment.