summaryrefslogtreecommitdiff
path: root/templates/client.erb
blob: 8c93cc5509b1ea26c88aef31021ef622cc7436eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%
	# Downcase all information
	dom = scope.lookupvar('::domain').downcase
	host = scope.lookupvar('::hostname').downcase
%>

### Munin client from Puppet template
# Domain: <%= dom %>
# Registered on: <%= host %>
# Type: <%= client_type %>
<% if description != 'absent' -%>
# Description: <%= description.gsub!(/\n/, ' ') %>
<% end -%>
[<%= fhost.downcase %>]
    address <%= munin_host_real %>
    port <%= munin_port_real %>
<% if config -%><% config.each do |val| -%> 
    <%= val -%>
<% end -%><% end -%>