From 02a8971459a201b9165909593c250122b0c06c1b Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Mon, 3 Jun 2013 14:24:20 +0200 Subject: Use @var style for puppet 3.2 compatibility --- templates/client.erb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'templates/client.erb') 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 -%> -- cgit v1.2.3