diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-12-25 00:26:05 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-12-25 00:26:05 -0200 |
commit | 0915a963bf42445f7a59d9e776d47c86ef35859a (patch) | |
tree | 71cfe72ac8cbe0734f55e22a43a540a711b86b15 /manifests | |
parent | 2ef0291b94715553747c51647a0ac2b0f930b92d (diff) | |
download | puppet-virtual-0915a963bf42445f7a59d9e776d47c86ef35859a.tar.gz puppet-virtual-0915a963bf42445f7a59d9e776d47c86ef35859a.tar.bz2 |
Fixing variable assignments
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 4 |
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" ) } } |