diff options
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r-- | manifests/vserver.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 2dd5ccb..105d5e3 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -20,12 +20,12 @@ class vserver::host { } -define vs_create($in_domain, $legacy = false) { +define vs_create($in_domain, $legacy = false, $distro = 'etch') { $vs_name = $legacy ? { true => $name, false => $in_domain ? { '' => $name, default => "${name}.${in_domain}" } } case $vs_name { '': { fail ( "Cannot create VServer with empty name" ) } } - exec { "/usr/sbin/vserver ${vs_name} build -m debootstrap -- -d etch": + exec { "/usr/sbin/vserver ${vs_name} build -m debootstrap -- -d $distro": creates => "/etc/vservers/${vs_name}", alias => "vs_create_${vs_name}" } |