diff options
author | mh <mh@immerda.ch> | 2013-06-03 22:41:10 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-06-03 22:41:10 +0200 |
commit | 46c1aeb48f03f5eb0f761f0135de967a62986515 (patch) | |
tree | 04cf490768bd8eaa37705b42dd971df1e7b8637a /templates/client.erb | |
parent | 2967c1c524242b26481985cf50b11821826f18d5 (diff) | |
parent | 9853b7286eb2342e2abf30369df2bf265b7c9a0e (diff) |
Merge remote-tracking branch 'github/master'
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 -%> |