summaryrefslogtreecommitdiff
path: root/manifests/client/base.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-12-10 16:48:01 -0500
committerMicah Anderson <micah@riseup.net>2010-12-10 16:48:01 -0500
commit74f66a8e77b153552ef52efee03187320e1ce877 (patch)
tree9f842135e5a62df7d0ef503dcf045e19238ff013 /manifests/client/base.pp
parentfefc399e7e28ec871d91089d535073c2bc705009 (diff)
standardize formatting
Diffstat (limited to 'manifests/client/base.pp')
-rw-r--r--manifests/client/base.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
index b834e9b..0f0feca 100644
--- a/manifests/client/base.pp
+++ b/manifests/client/base.pp
@@ -1,23 +1,29 @@
class munin::client::base {
+
service { 'munin-node':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
- file {'/etc/munin':
+
+ file { '/etc/munin':
ensure => directory,
mode => 0755, owner => root, group => 0;
}
+
$real_munin_allow = $munin_allow ? {
'' => '127.0.0.1',
default => $munin_allow
}
- file {'/etc/munin/munin-node.conf':
+
+ file { '/etc/munin/munin-node.conf':
content => template("munin/munin-node.conf.$operatingsystem"),
notify => Service['munin-node'],
mode => 0644, owner => root, group => 0,
}
+
munin::register { $fqdn: }
include munin::plugins::base
+
}