diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 6b514d5..b41e628 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -20,12 +20,11 @@ class vserver::host { } -define vs_create($in_domain, $legacy = false, $distro = 'etch') { +define vs_create($in_domain, $legacy = false, $distro = 'etch', $debootstrap_mirror) { $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 $distro": + exec { "/usr/sbin/vserver ${vs_name} build -m debootstrap -- -d $distro -m $mirror": creates => "/etc/vservers/${vs_name}", alias => "vs_create_${vs_name}" } |