aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-12 13:47:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-12 13:47:58 -0300
commit8c336e3cfa521073fc1746cc03e2f243b74fbe64 (patch)
tree019dd6a9c8e20f5296c150fc97d1179d40830f94
parent483069e6c022349744cc9bb65249b0e75d5d2a3f (diff)
downloadpuppet-nodo-8c336e3cfa521073fc1746cc03e2f243b74fbe64.tar.gz
puppet-nodo-8c336e3cfa521073fc1746cc03e2f243b74fbe64.tar.bz2
Make smartmontools optional
-rw-r--r--manifests/base/physical.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp
index a00dd18..6deee3c 100644
--- a/manifests/base/physical.pp
+++ b/manifests/base/physical.pp
@@ -1,5 +1,10 @@
class nodo::base::physical inherits nodo::base::host {
- class { [ 'nodo::subsystem::ups', 'smartmontools' ]: }
+ class { 'nodo::subsystem::ups' }
+
+ $smartmontools = hiera('nodo::smartmontools', true)
+ if $smartmontools == true {
+ class { 'smartmontools': }
+ }
package { 'lm-sensors':
ensure => present,