aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/physical.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-07 15:24:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-07 15:24:05 -0300
commitd97d630f5dc6933f11b9cc93e197c40fba0aed8a (patch)
treefb9dc9f7cb611dd021b67c0edfb6377e1404d940 /manifests/base/physical.pp
parentaff8517a0a22a65224324c3ac90bd9a9b25a842f (diff)
downloadpuppet-nodo-d97d630f5dc6933f11b9cc93e197c40fba0aed8a.tar.gz
puppet-nodo-d97d630f5dc6933f11b9cc93e197c40fba0aed8a.tar.bz2
Setting up sensors_ munin plugins
Diffstat (limited to 'manifests/base/physical.pp')
-rw-r--r--manifests/base/physical.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp
index b2f2fcd..f2ab477 100644
--- a/manifests/base/physical.pp
+++ b/manifests/base/physical.pp
@@ -1,14 +1,23 @@
class nodo::base::physical inherits nodo::base::host {
class { [ 'nodo::subsystem::ups', 'smartmontools' ]: }
- # SMART monitoring
+ # SMART and sensors monitoring
$munin = hiera('nodo::host::use_munin', True)
if $munin == true {
include munin::plugins::smart
+
munin::plugin { 'smart_sda':
ensure => 'smart_',
config => "user root\ngroup disk",
}
+
+ package { 'lm-sensors':
+ ensure => present,
+ }
+
+ munin::plugin { [ 'sensors_fan', 'sensors_volt', 'sensors_temp' ]:
+ ensure => 'sensors_',
+ }
}
# Entropy key