Skip to content

Commit

Permalink
Use different file name for processes plugin config
Browse files Browse the repository at this point in the history
Resubmission of PR voxpupuli#856
  • Loading branch information
archii committed Mar 26, 2019
1 parent fea7fd3 commit 946429f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions manifests/plugin/processes.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
order => $order,
interval => $interval,
}
$config_file = "${collectd::plugin_conf_dir}/processes-plugin-config.conf"

concat { "${collectd::plugin_conf_dir}/processes-config.conf":
concat { $config_file:
ensure => $ensure,
mode => $collectd::config_mode,
owner => $collectd::config_owner,
Expand All @@ -32,13 +33,13 @@
concat::fragment { 'collectd_plugin_processes_conf_header':
order => '00',
content => epp('collectd/plugin/processes-header.conf.epp'),
target => "${collectd::plugin_conf_dir}/processes-config.conf",
target => $config_file,
}

concat::fragment { 'collectd_plugin_processes_conf_footer':
order => '99',
content => '</Plugin>',
target => "${collectd::plugin_conf_dir}/processes-config.conf",
target => $config_file,
}

if $processes {
Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/processes/process.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'collect_file_descriptor' => $collect_file_descriptor,
'collect_memory_maps' => $collect_memory_maps,
}),
target => "${collectd::plugin_conf_dir}/processes-config.conf",
target => $collectd::plugin::processes::config_file,
}

}
2 changes: 1 addition & 1 deletion manifests/plugin/processes/processmatch.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
'collect_file_descriptor' => $collect_file_descriptor,
'collect_memory_maps' => $collect_memory_maps,
}),
target => "${collectd::plugin_conf_dir}/processes-config.conf",
target => $collectd::plugin::processes::config_file,
}
}

0 comments on commit 946429f

Please sign in to comment.