summaryrefslogtreecommitdiff
path: root/manifests/client/base.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-09-29 22:51:15 +0200
committermh <mh@immerda.ch>2009-09-29 22:51:15 +0200
commit1893960c1babb6a261cc6fc399231e9c0644a104 (patch)
tree7e4fb1f3d2d34490b8d5cfff50d6f9cadf890fb9 /manifests/client/base.pp
parentc63a28d3c16ec2bb3a46d3d5faf6d7ef3b737b70 (diff)
refactor everything into its own file
Diffstat (limited to 'manifests/client/base.pp')
-rw-r--r--manifests/client/base.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
new file mode 100644
index 0000000..1f72e7e
--- /dev/null
+++ b/manifests/client/base.pp
@@ -0,0 +1,23 @@
+class munin::client::base {
+ service { 'munin-node':
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ }
+ 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':
+ content => template("munin/munin-node.conf.$operatingsystem"),
+ notify => Service['munin-node'],
+ mode => 0644, owner => root, group => 0,
+ }
+ munin::register { $fqdn: }
+ include munin::plugins::base
+}