summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--files/modules_dir/.ignore0
-rw-r--r--manifests/client.pp3
-rw-r--r--manifests/plugin.pp42
4 files changed, 16 insertions, 30 deletions
diff --git a/README b/README
index 4f0e2db..5384c30 100644
--- a/README
+++ b/README
@@ -1,3 +1,4 @@
+== Munin ==
Munin is a performance monitoring system which creates nice RRD graphs and has
a very easy plugin interface. The munin homepage is http://munin.projects.linpro.no/
diff --git a/files/modules_dir/.ignore b/files/modules_dir/.ignore
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/files/modules_dir/.ignore
diff --git a/manifests/client.pp b/manifests/client.pp
index 59b6980..9a7b772 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -66,10 +66,11 @@ class munin::client::base {
}
file {"/etc/munin/munin-node.conf":
content => template("munin/munin-node.conf.$operatingsystem"),
- mode => 0644, owner => root, group => 0,
# this has to be installed before the package, so the postinst can
# boot the munin-node without failure!
before => Package["munin-node"],
+ notify => Service['munin-node'],
+ mode => 0644, owner => root, group => 0,
}
munin::register { $fqdn: }
include munin::plugins::base
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 76d12a0..9111aec 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -134,35 +134,19 @@ define munin::plugin::deploy ($source = '', $ensure = 'present', $config = '') {
### clases for plugins
class munin::plugins::base {
- case $operatingsystem {
- centos: {
- file {
- [ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
- source => "puppet://$server/munin/empty",
- ensure => directory, checksum => mtime,
- recurse => true, purge => true, force => true,
- mode => 0755, owner => root, group => 0;
- "/etc/munin/plugin-conf.d/munin-node":
- ensure => present,
- mode => 0644, owner => root, group => 0;
- }
- }
-
- default: {
- file {
- [ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
- source => "puppet://$server/munin/empty",
- ensure => directory, checksum => mtime,
- recurse => true, purge => true, force => true,
- mode => 0755, owner => root, group => 0,
- notify => Service['munin-node'];
- "/etc/munin/plugin-conf.d/munin-node":
- ensure => present,
- mode => 0644, owner => root, group => 0,
- notify => Service['munin-node'],
- before => Package['munin-node'];
- }
- }
+ file {
+ [ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
+ source => "puppet://$server/common/empty",
+ ignore => '.ignore',
+ ensure => directory, checksum => mtime,
+ recurse => true, purge => true, force => true,
+ mode => 0755, owner => root, group => 0,
+ notify => Service['munin-node'];
+ "/etc/munin/plugin-conf.d/munin-node":
+ ensure => present,
+ mode => 0644, owner => root, group => 0,
+ notify => Service['munin-node'],
+ before => Package['munin-node'];
}
case $kernel {
linux: {