aboutsummaryrefslogtreecommitdiff
path: root/manifests/vserver.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-05-23 22:11:51 +0000
committerMicah Anderson <micah@riseup.net>2008-05-23 22:11:51 +0000
commit3ac15674384090509a67348f113a715aa95b3a4a (patch)
tree2c33e6e21b3136886dae9ea5fca8297a89ed02c4 /manifests/vserver.pp
parent27ba1fab79a3471a5d2f1135f212c2b20da41239 (diff)
downloadpuppet-virtual-3ac15674384090509a67348f113a715aa95b3a4a.tar.gz
puppet-virtual-3ac15674384090509a67348f113a715aa95b3a4a.tar.bz2
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
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r--manifests/vserver.pp5
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}"
}