summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-02-03 14:57:03 +0100
committermh <mh@immerda.ch>2014-02-03 14:57:03 +0100
commitb5cc9427aeca48689913b7462e58dd905c4a788b (patch)
tree74e139867b79ab493d86e925ff1c8a45d3cbf76a
parent695d81c81cd152b5dd7333d0eae2bd6df108a41e (diff)
cleanup some of the missing parts
-rw-r--r--manifests/register.pp14
-rw-r--r--templates/client.erb10
2 files changed, 12 insertions, 12 deletions
diff --git a/manifests/register.pp b/manifests/register.pp
index f0567d7..8c1ec61 100644
--- a/manifests/register.pp
+++ b/manifests/register.pp
@@ -1,12 +1,12 @@
# 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
diff --git a/templates/client.erb b/templates/client.erb
index 5741701..bc42452 100644
--- a/templates/client.erb
+++ b/templates/client.erb
@@ -1,12 +1,12 @@
<%
- # 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/, ' ') %>