summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-13 20:40:57 -0300
committermh <mh@immerda.ch>2012-06-13 20:40:57 -0300
commitc95f0b2fcf4f35b1a7ae3ad9c04600a32ab2bb43 (patch)
treeb643e6144b1fe32cdba08692cce075a0fc2aa2b5 /templates
parentb4a30b6255ca495b98803317ad691fa1a26a4987 (diff)
migrate away from hiera stuff
Diffstat (limited to 'templates')
-rw-r--r--templates/client.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/client.erb b/templates/client.erb
index 8c93cc5..7131ade 100644
--- a/templates/client.erb
+++ b/templates/client.erb
@@ -1,19 +1,19 @@
<%
# Downcase all information
dom = scope.lookupvar('::domain').downcase
- host = scope.lookupvar('::hostname').downcase
+ h = scope.lookupvar('::hostname').downcase
%>
### Munin client from Puppet template
# Domain: <%= dom %>
-# Registered on: <%= host %>
+# Registered on: <%= h %>
# Type: <%= client_type %>
<% if description != 'absent' -%>
# Description: <%= description.gsub!(/\n/, ' ') %>
<% end -%>
[<%= fhost.downcase %>]
- address <%= munin_host_real %>
- port <%= munin_port_real %>
+ address <%= host %>
+ port <%= port %>
<% if config -%><% config.each do |val| -%>
<%= val -%>
<% end -%><% end -%>