summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp49
1 files changed, 13 insertions, 36 deletions
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' }