]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/munin/templates/munin.conf-per-node.erb
d2a23e8b17efa8b56ced8409703adff624a6a302
[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     address <%= client_ipaddress %>
14 <%- else %>
15     address <%= client_ipaddress %>
16 <%- end %>