]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/munin/templates/munin.conf-per-node.erb
dupload.conf: enable gpg check
[dsa-puppet.git] / modules / munin / templates / munin.conf-per-node.erb
index e163d29f7ec2b72f262094c4684d802fc2acdb87..421d0dd611f62c687bec45ca5e11c8fd67d845ee 100644 (file)
@@ -2,5 +2,14 @@
 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
 ##
 
-[<%= fqdn %>]
-    address <%= ipaddress %>
+[<%= client_fqdn %>]
+<%
+# variables are different whether or not they go via the stored config thing.
+#  on the host that actually gets the config, client_munin_async is a String, saying "true",
+#  from other hosts it's an actual boolean, i.e. an instance of either FalseClass or TrueClass
+%>
+<%- 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))) %>
+    address ssh://munin-async@<%= client_fqdn %>/set-in-authkeys
+<%- else %>
+    address <%= client_ipaddress %>
+<%- end %>