diff options
author | Micah Anderson <micah@riseup.net> | 2008-05-23 22:11:51 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-05-23 22:11:51 +0000 |
commit | 3ac15674384090509a67348f113a715aa95b3a4a (patch) | |
tree | 2c33e6e21b3136886dae9ea5fca8297a89ed02c4 | |
parent | 27ba1fab79a3471a5d2f1135f212c2b20da41239 (diff) | |
download | puppet-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
-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}" } |