aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-31 20:20:55 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-31 20:20:55 -0200
commita57643c7831a100cf1e2a4bc9b2fbd2699fb10ce (patch)
treed9e90983ab678143c5ecb1711616e6993c1153f2
parentd96ffbc4736d1ec3d50a1a888233201b7df5dc9d (diff)
downloadpuppet-nodo-a57643c7831a100cf1e2a4bc9b2fbd2699fb10ce.tar.gz
puppet-nodo-a57643c7831a100cf1e2a4bc9b2fbd2699fb10ce.tar.bz2
Introducing nodo::host::use_vserver
-rw-r--r--manifests/host.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index 5682aea..aefbb92 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -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",
+ }
}
}