aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/vserver.pp12
1 files changed, 4 insertions, 8 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index 8f7437c..36a934a 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -4,7 +4,7 @@
module_dir{ "virtual/contexts": }
-class vserver::host {
+class vserver::host($vdirbase = "/var/lib/vservers") {
# make sure we have the ability to query for lsbdistcodename
include lsb
@@ -15,10 +15,6 @@ class vserver::host {
default => latest,
}
- case $vserver_vdirbase {
- '': { $vserver_vdirbase = "/var/lib/vservers" }
- }
-
package {
"util-vserver":
ensure => $utilvserver_version;
@@ -43,10 +39,10 @@ class vserver::host {
require => [ Package['util-vserver'], Package[debootstrap]];
"/etc/vservers/.defaults/vdirbase":
- ensure => $vserver_vdirbase,
- require => File[$vserver_vdirbase];
+ ensure => $vdirbase,
+ require => File[$vdirbase];
- "$vserver_vdirbase":
+ "$vdirbase":
ensure => directory,
mode => 000, owner => root, group => root;