421d0dd611f62c687bec45ca5e11c8fd67d845ee
[mirror/dsa-puppet.git] / modules / munin / templates / munin.conf-per-node.erb
1 ##
2 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ##
4
5 [<%= client_fqdn %>]
6 <%
7 # variables are different whether or not they go via the stored config thing.
8 #  on the host that actually gets the config, client_munin_async is a String, saying "true",
9 #  from other hosts it's an actual boolean, i.e. an instance of either FalseClass or TrueClass
10 %>
11 <%- if has_variable?('client_munin_async') and ((client_munin_async.kind_of?(String) and client_munin_async == "true") or (client_munin_async.kind_of?(TrueClass))) %>
12     address ssh://munin-async@<%= client_fqdn %>/set-in-authkeys
13 <%- else %>
14     address <%= client_ipaddress %>
15 <%- end %>