NAME
Rex::Commands::Box - Functions / Class to manage Virtual Machines
DESCRIPTION
This is a Module to manage Virtual Machines or Cloud Instances in a simple way. Currently it supports only VirtualBox.
SYNOPSIS
task mytask => sub {
box {
my ($box) = @_;
$box->name("vmname");
$box->url("http://box.rexify.org/box/base-image.box");
$box->network(1 => {
type => "nat",
});
$box->network(1 => {
type => "bridged",
bridge => "eth0",
});
$box->forward_port(ssh => [2222, 22]);
$box->share_folder(myhome => "/home/myuser");
$box->auth(
user => "root",
password => "box",
);
$box->setup(qw/task_to_customize_box/);
};
};
EXPORTED FUNCTIONS
- new(name => $vmname)
-
Constructor if used in OO mode.
my $box = Rex::Commands::Box->new(name => "vmname");
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 50:
=over without closing =back