]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Introducing nodo::host::use_vserver
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 Jan 2013 22:20:55 +0000 (20:20 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 Jan 2013 22:20:55 +0000 (20:20 -0200)
manifests/host.pp

index 5682aea99f5de59c928b27314c377ce53d9f59f1..aefbb928ce7316dc3491850af340720b282fffe3 100644 (file)
@@ -15,8 +15,12 @@ class nodo::host inherits nodo {
 
   # Vserver
   if $::lsbdistcodename == 'squeeze' {
-    class { 'vserver::host':
-      vdirbase => "/var/vservers",
+    $vserver = hiera('nodo::host::use_vserver', True)
+
+    if $vserver == true {
+      class { 'vserver::host':
+        vdirbase => "/var/vservers",
+      }
     }
   }