aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-01-18 15:54:34 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-01-18 15:54:34 -0200
commit1ff45f72a2e02d73f1ef4874a319826203b1b879 (patch)
treee2a9dd6349e451b9a28a5c4b5dea2461a31f68d1 /manifests/subsystem
parentc3f3908dd35749ba3bd3074f339d76e8f0a4a76b (diff)
downloadpuppet-nodo-1ff45f72a2e02d73f1ef4874a319826203b1b879.tar.gz
puppet-nodo-1ff45f72a2e02d73f1ef4874a319826203b1b879.tar.bz2
Manage rrdcached on nodo::subsystem::monitor::master
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/monitor/master.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/subsystem/monitor/master.pp b/manifests/subsystem/monitor/master.pp
index 6895617..44de95b 100644
--- a/manifests/subsystem/monitor/master.pp
+++ b/manifests/subsystem/monitor/master.pp
@@ -6,4 +6,27 @@ class nodo::subsystem::monitor::master {
source => 'puppet:///modules/nodo/etc/nagios-plugins/check_rbl.ini',
require => Package['nagios'],
}
+
+ #
+ # See https://raymii.org/s/tutorials/Munin_optimalization_on_Debian.html
+ # https://munin.readthedocs.org/en/latest/master/rrdcached.html
+ # http://kuszelas.eu/~eyck/log/Howto/Munin.Rrdcached.html
+ #
+ package { 'rrdcached':
+ ensure => present,
+ }
+
+ file { '/etc/default/rrdcached':
+ ensure => present,
+ owner => root,
+ group => root,
+ source => 'puppet:///modules/nodo/etc/default/rrdcached',
+ require => Package['rrdcached'],
+ notify => Service['rrdcached'],
+ }
+
+ service { 'rrdcached':
+ ensure => running,
+ require => Package['rrdcached'],
+ }
}