aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-26 18:04:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-26 18:04:11 -0300
commitda4b8011cf13ad30dc4c431b24957846353fbc89 (patch)
tree8238868af964d96766dd4900ad2dbba64b76e23a
parent57e007f6826cba775f98a53596bdbcea51a78376 (diff)
downloadpuppet-nodo-da4b8011cf13ad30dc4c431b24957846353fbc89.tar.gz
puppet-nodo-da4b8011cf13ad30dc4c431b24957846353fbc89.tar.bz2
Adding nodo::physical::sdb config
-rw-r--r--manifests/base/physical.pp20
1 files changed, 17 insertions, 3 deletions
diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp
index eae94a4..45648ee 100644
--- a/manifests/base/physical.pp
+++ b/manifests/base/physical.pp
@@ -6,14 +6,28 @@ class nodo::base::physical inherits nodo::base::host {
if $munin == true {
include munin::plugins::smart
+ # TODO: use nodo::physical::disks instead
+ $sdb = hiera('nodo::physical::sdb', false)
+ $disks = $sdb ? {
+ true => 'sda sdb',
+ default => 'sda',
+ }
+
+ munin::plugin { 'hddtemp_smartctl':
+ ensure => present,
+ config => "user root\ngroup disk\nenv.drives ${disks}",
+ }
+
munin::plugin { 'smart_sda':
ensure => 'smart_',
config => "user root\ngroup disk",
}
- munin::plugin { 'hddtemp_smartctl':
- ensure => present,
- config => "user root\ngroup disk\nenv.drives sda",
+ if $sdb == true {
+ munin::plugin { 'smart_sdb':
+ ensure => 'smart_',
+ config => "user root\ngroup disk",
+ }
}
package { 'lm-sensors':