summaryrefslogtreecommitdiff
path: root/templates/client.erb
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2010-09-27 12:19:21 +0200
committerMarcel Haerry <haerry@puzzle.ch>2010-09-27 12:19:21 +0200
commit88fec38166f51bf8edabba6769a198016b799f1e (patch)
tree301cb85c9238c834c58733700774932b413b4299 /templates/client.erb
parente27e74f81274d35d3873c6b5b5fa8816138212ed (diff)
update templates to the new way
Diffstat (limited to 'templates/client.erb')
-rw-r--r--templates/client.erb18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/client.erb b/templates/client.erb
new file mode 100644
index 0000000..286631f
--- /dev/null
+++ b/templates/client.erb
@@ -0,0 +1,18 @@
+<%
+ # Downcase all information
+ dom = domain.downcase
+ host = hostname.downcase
+%>
+
+### Munin client from Puppet template
+# Domain: <%= dom %>
+# Registered on: <%= host %>
+# Type: <%= client_type %>
+<% if description != 'absent' -%>
+# Description: <%= description.gsub!(/\n/, ' ') %>
+<% end -%>
+[<%= fhost.downcase %>]
+ address <%= munin_host_real -%>
+<% if config -%><% config.each do |val| -%>
+ <%= val -%>
+<% end -%><% end -%>