Skip to content

Commit

Permalink
Merge pull request #973 from markasammut/patch-1
Browse files Browse the repository at this point in the history
Adding Reverse Host parameter
  • Loading branch information
ghoneycutt authored Jun 10, 2021
2 parents fb69b9e + d3e8680 commit e134062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/plugin/write_graphite/carbon.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Boolean $separateinstances = false,
Boolean $logsenderrors = true,
Integer $reconnectinterval = 0,
Boolean $reversehost = false,
) {
include collectd
include collectd::plugin::write_graphite
Expand Down
3 changes: 3 additions & 0 deletions templates/plugin/write_graphite/carbon.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<%- if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.6']) >= 0) -%>
ReconnectInterval <%= @reconnectinterval %>
<%- end -%>
<%- if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.9']) >= 0) -%>
ReverseHost <%= @reversehost %>
<%- end -%>
<%- if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.3']) >= 0) -%>
</Node>
<%- else -%>
Expand Down

0 comments on commit e134062

Please sign in to comment.