Age | Commit message (Collapse) | Author |
|
|
|
The old way tracked each binary's absolute path, hardcoded in a variable
bin${binary_name}.
This introduces the env_setup function, which will find the absolute
path (using which) to each specified binary, updating the global bins
associative array with its path. This allows for binaries to be placed
in other locations and the script will still work, provided the binary
can be found somewhere in PATH. This also allows for binary overriding.
This change updates all references to the previous way of finding
binaries with the new env_setup way.
Note that this function will also exit code 1 with an error message if a
binary can't be found, ensuring the script exits early if the
environment isn't set up to run it.
|
|
Also cleaned up old commented out code that is no longer in use.
|
|
|
|
Currently builds out a vm. Assigns it a predictable mac address and
hostname. Also inserts a predictable ip reservation into dnsmasq for the
mac address. Part of the insertion process also adds dns entry, so
hostnames will resolve between systems.
Supports listing vms with ls action (vmgr ls). Output includes hostname
hostname, ip, and mac address.
Supports rm action to delete a virtual machine. The rm command will
stop the vm, delete it, remove its storage, refresh the storage pool,
and remove the vms ip address reservation.
|