aboutsummaryrefslogtreecommitdiff
path: root/manifests/vserver.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r--manifests/vserver.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index 616631d..f29b9d6 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -101,7 +101,9 @@ class vserver::host {
}
}
-define vs_create($in_domain, $context, $legacy = false, $distro = 'etch', $debootstrap_mirror = 'http://ftp.debian.org/debian') {
+# TODO: hostname
+define vs_create($in_domain, $context, $legacy = false, $distro = 'etch',
+ $debootstrap_mirror = 'http://ftp.debian.org/debian', $hostname = false) {
$vs_name = $legacy ? { true => $name, false => $in_domain ? { '' => $name, default => "${name}.${in_domain}" } }
case $vs_name { '': { fail ( "Cannot create VServer with empty name" ) } }