summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2008-07-21 09:53:42 +0200
committerMarcel Haerry <haerry@puzzle.ch>2008-07-21 09:53:42 +0200
commit625265b100f1b4a9448ad9db7013e183487bb072 (patch)
tree2931f317af3aa052e03636a0e7987fc6c500932b /manifests
parent2de5b80d2686711e0d7b0d8aabee6e14919709af (diff)
parenta0eba1c444207b6fad449e3de61d60fcdd6994d9 (diff)
merged with immerda
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp3
-rw-r--r--manifests/plugin.pp49
2 files changed, 15 insertions, 37 deletions
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..2065c79 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: {
@@ -262,13 +246,6 @@ class munin::plugins::selinux inherits munin::plugins::base {
munin::plugin::deploy { "selinux_avcstats": }
}
-class munin::plugins::squid inherits munin::plugins::base {
- munin::plugin{ 'squid_cache': config => "user root\nenv.squidhost localhost\nenv.squidport 80"}
- munin::plugin{ 'squid_icp': }
- munin::plugin{ 'squid_requests': }
- munin::plugin{ 'squid_traffic': }
-}
-
class munin::plugins::postgres inherits munin::plugins::base {
munin::plugin::deploy { "pg_conn": }
munin::plugin::deploy { "pg__connections": ensure => 'absent' }