From 3ac15674384090509a67348f113a715aa95b3a4a Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 23 May 2008 22:11:51 +0000 Subject: add the ability to specify a debootstrap mirror location, this can be done in site.pp as a variable too if you want to specify it site-wide --- manifests/vserver.pp | 5 ++--- 1 file 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}" } -- cgit v1.2.3