]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Make smartmontools optional
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 12 Mar 2016 16:47:58 +0000 (13:47 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 12 Mar 2016 16:47:58 +0000 (13:47 -0300)
manifests/base/physical.pp

index a00dd1824377c6a366bec8511ff3f6ddb71b07db..6deee3ccb2a07a7e85cea528de5ed50a5e9fb20a 100644 (file)
@@ -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,