aboutsummaryrefslogtreecommitdiff
path: root/manifests/vserver.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-25 00:26:05 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-25 00:26:05 -0200
commit0915a963bf42445f7a59d9e776d47c86ef35859a (patch)
tree71cfe72ac8cbe0734f55e22a43a540a711b86b15 /manifests/vserver.pp
parent2ef0291b94715553747c51647a0ac2b0f930b92d (diff)
downloadpuppet-virtual-0915a963bf42445f7a59d9e776d47c86ef35859a.tar.gz
puppet-virtual-0915a963bf42445f7a59d9e776d47c86ef35859a.tar.bz2
Fixing variable assignments
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" ) } }