# Register a munin client
define munin::register (
- $host = $::fqdn,
- $port = '4949',
- $use_ssh = false,
- $description = 'absent',
- $config = [],
- $export_tag = 'munin',
- $group ='absent',
+ $host = $::fqdn,
+ $port = '4949',
+ $use_ssh = false,
+ $description = 'absent',
+ $config = [],
+ $export_tag = 'munin',
+ $group = 'absent',
)
{
$fhost = $name
<%
- # Downcase all information
- dom = scope.lookupvar('::domain').downcase
- h = scope.lookupvar('::hostname').downcase
+ # Downcase all information
+ dom = scope.lookupvar('::domain').downcase
+ h = scope.lookupvar('::hostname').downcase
%>
### Munin client from Puppet template
-# Domain: <%= @dom %>
-# Registered on: <%= @h %>
+# Domain: <%= dom %>
+# Registered on: <%= h %>
# Type: <%= @client_type %>
<% if @description != 'absent' -%>
# Description: <%= @description.gsub(/\n/, ' ') %>