Skip to content

Commit

Permalink
fix boolean for monitor_coretemp and collectd_forward_to_logstash
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyowizard committed Feb 29, 2016
1 parent 98d26bf commit 2322a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/collectd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ LoadPlugin interface
IgnoreSelected true
</Plugin>

{% if monitor_coretemp %}
{% if monitor_coretemp|bool %}
<Plugin exec>
Exec nobody "/opt/collectd-exec-modules/collectd-coretemp.sh"
</Plugin>
Expand All @@ -105,7 +105,7 @@ LoadPlugin rrdtool

LoadPlugin network
<Plugin network>
{% if collectd_forwarder is defined and collectd_forward_to_logstash %}
{% if collectd_forwarder is defined and collectd_forward_to_logstash|bool %}
<Server "{{ hostvars[collectd_forwarder]['private_ip']|default(hostvars[collectd_forwarder]['ansible_ssh_host']) }}" "25827">
Interface "{{ private_interface }}"
</Server>
Expand Down

0 comments on commit 2322a90

Please sign in to comment.