blob: 7131ade6eca013a568f77c385b6f550aabbd9a2e (
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
h = scope.lookupvar('::hostname').downcase
%>
### Munin client from Puppet template
# Domain: <%= dom %>
# Registered on: <%= h %>
# Type: <%= client_type %>
<% if description != 'absent' -%>
# Description: <%= description.gsub!(/\n/, ' ') %>
<% end -%>
[<%= fhost.downcase %>]
address <%= host %>
port <%= port %>
<% if config -%><% config.each do |val| -%>
<%= val -%>
<% end -%><% end -%>
|