summaryrefslogtreecommitdiff
path: root/templates/client.erb
diff options
context:
space:
mode:
authorEwoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>2013-06-03 14:24:20 +0200
committerEwoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>2013-06-03 14:25:56 +0200
commit02a8971459a201b9165909593c250122b0c06c1b (patch)
tree76ecdd622435e4989a104cde2042aab9e9db288f /templates/client.erb
parenteb8089cd99b9aacdb6af9da4704dce3a3ef7d299 (diff)
Use @var style for puppet 3.2 compatibility
Diffstat (limited to 'templates/client.erb')
-rw-r--r--templates/client.erb24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/client.erb b/templates/client.erb
index ba03da5..83d5a64 100644
--- a/templates/client.erb
+++ b/templates/client.erb
@@ -5,20 +5,20 @@
%>
### Munin client from Puppet template
-# Domain: <%= dom %>
-# Registered on: <%= h %>
-# Type: <%= client_type %>
-<% if description != 'absent' -%>
-# Description: <%= description.gsub!(/\n/, ' ') %>
+# Domain: <%= @dom %>
+# Registered on: <%= @h %>
+# Type: <%= @client_type %>
+<% if @description != 'absent' -%>
+# Description: <%= @description.gsub!(/\n/, ' ') %>
<% end -%>
-[<%= fhost.downcase %>]
-<% if use_ssh -%>
- address ssh://<%= host %>/bin/nc localhost <%= port %>
+[<%= @fhost.downcase %>]
+<% if @use_ssh -%>
+ address ssh://<%= @host %>/bin/nc localhost <%= @port %>
<% else -%>
- address <%= host %>
- port <%= port %>
+ address <%= @host %>
+ port <%= @port %>
<% end -%>
-<% if config -%><% config.each do |val| -%>
- <%= val -%>
+<% if @config -%><% @config.each do |val| -%>
+ <%= @val -%>
<% end -%><% end -%>