diff options
author | Micah Anderson <micah@riseup.net> | 2007-11-04 23:20:38 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2007-11-04 23:20:38 +0000 |
commit | 8f5d93bd69d40f701190f8dd39355be8e9848819 (patch) | |
tree | f7f5f7bedfbc999fa631c49567c7ba5798c5554d /manifests/vserver.pp | |
parent | 5735a14ff250593b72b4f202b26c90b42df548e9 (diff) | |
download | puppet-virtual-8f5d93bd69d40f701190f8dd39355be8e9848819.tar.gz puppet-virtual-8f5d93bd69d40f701190f8dd39355be8e9848819.tar.bz2 |
add a distro parameter to the vserver build
add the definition for the parrot etch vserver for a test
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}" } |