diff options
author | Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> | 2013-06-03 14:24:20 +0200 |
---|---|---|
committer | Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> | 2013-06-03 14:25:56 +0200 |
commit | 02a8971459a201b9165909593c250122b0c06c1b (patch) | |
tree | 76ecdd622435e4989a104cde2042aab9e9db288f /templates/client.erb | |
parent | eb8089cd99b9aacdb6af9da4704dce3a3ef7d299 (diff) |
Use @var style for puppet 3.2 compatibility
Diffstat (limited to 'templates/client.erb')
-rw-r--r-- | templates/client.erb | 24 |
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 -%> |