aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-25 11:04:35 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-25 11:04:35 -0200
commit61fd970b469973e13ddde78a1159ef62438c1a2f (patch)
treefc04ac7cf4ffbe39a51197c954f9e336fc8fe3da /manifests
parent8ddd500f6b4d02d3d4e8f27914720c009a02f83d (diff)
downloadpuppet-virtual-61fd970b469973e13ddde78a1159ef62438c1a2f.tar.gz
puppet-virtual-61fd970b469973e13ddde78a1159ef62438c1a2f.tar.bz2
Changing variable names and defaults
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vserver.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index 4709ac8..459d1fd 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -103,8 +103,9 @@ class vserver::host {
define vs_create($in_domain, $context, $legacy = false, $distro = 'etch',
$debootstrap_mirror = 'http://ftp.debian.org/debian', $hostname = false, $interface = false) {
- $vs_name = $legacy ? { true => $name, false => $in_domain ? { '' => $name, default => "${name}.${in_domain}" } }
- $vs_hostname = $hostname ? { false => 'none', default => $hostname }
+ $vs_name = $legacy ? { true => $name, false => $in_domain ? { '' => $name, default => "${name}.${in_domain}" } }
+ $vs_hostname = $hostname ? { false => 'none', default => $hostname }
+ $vs_interface = $interface ? { false => 'none', default => $interface }
case $vs_name { '': { fail ( "Cannot create VServer with empty name" ) } }