Skip to content

Commit

Permalink
Merge pull request redhat-openstack#178 from joshgarnett/master
Browse files Browse the repository at this point in the history
Adding support for WriteQueueLimitLow & WriteQueueLimitHigh
  • Loading branch information
blkperl committed Nov 13, 2014
2 parents 822ac69 + 3b691fd commit ff1831d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
26 changes: 14 additions & 12 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#
class collectd(
$fqdnlookup = true,
$collectd_hostname = $::hostname,
$interval = 10,
$include = [],
$purge = undef,
$purge_config = false,
$recurse = undef,
$threads = 5,
$timeout = 2,
$typesdb = [],
$package_name = $collectd::params::package,
$version = installed,
$fqdnlookup = true,
$collectd_hostname = $::hostname,
$interval = 10,
$include = [],
$purge = undef,
$purge_config = false,
$recurse = undef,
$threads = 5,
$timeout = 2,
$typesdb = [],
$write_queue_limit_high = undef,
$write_queue_limit_low = undef,
$package_name = $collectd::params::package,
$version = installed,
) inherits collectd::params {

$plugin_conf_dir = $collectd::params::plugin_conf_dir
Expand Down
6 changes: 6 additions & 0 deletions templates/collectd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ TypesDB<% @typesdb.each do |path| -%> "<%= path %>"<% end %>
<% else -%>
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
<% end -%>
<% if @write_queue_limit_high -%>
WriteQueueLimitHigh <%= @write_queue_limit_high %>
<% end -%>
<% if @write_queue_limit_low -%>
WriteQueueLimitLow <%= @write_queue_limit_low %>
<% end -%>
Interval <%= @interval %>
Timeout <%= @timeout %>
ReadThreads <%= @threads %>
Expand Down

0 comments on commit ff1831d

Please sign in to comment.