mkmpnode - Create multipass nodes with a specified (or default) cloud-init file
More...
|
String | ubuntuVer = noble |
| Which base image to use. Can be overridden by ned user.
|
|
String | nodeName = |
| Node name. Specified by user.
|
|
String | bridged = |
| Make the node available on external network.
|
|
String | memory = "800M" |
| Node memory size.
|
|
String | disk = "8G" |
| Node disk size.
|
|
Integer | cpus = 2 |
| Number of virtual CPUs available for node.
|
|
String | mountDev = 0 |
| Determine if we should mount ~/Devel in the users home directory in the node.
|
|
ReadOnly String | vlist = ("focal" "impish" "jammy" "noble" "docker") |
| Valid options for ubuntuVer.
|
|
Integer | noexecute = 0 |
| Flag for doing a dryrun.
|
|
String | cloudInit = "" |
| Which cloud-init file to use.
|
|
String | defaultCloudInit = "minidev-config.yaml" |
| Default cloud-init file if none specified by user.
|
|
Integer | quiet_flag = 0 |
| Suppress output.
|
|
String | red = "\033[31m" |
| Terminal color for error messages.
|
|
String | default = "\033[39m" |
| Restore default terminal color.
|
|
ReadOnly String | INSTALL_PREFIX = "/usr/local" |
| Default installation path.
|
|
ReadOnly String | INSTALL_BIN_DIR = "${INSTALL_PREFIX}/bin" |
| Default installation path for executables.
|
|
String | MKMPNODE_SCRIPT = "./mkmpnode.sh" |
| Name of the mkmpnode script we call.
|
|
ReadOnly String | SCRIPT_DIR = $(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) |
| This will hold the name of the directory from where this script is executed.
|
|
mkmpnode - Create multipass nodes with a specified (or default) cloud-init file
NAME
mkmpnode
USAGE
mkmpnode [-r RELEASE] [-c FILE] [-d SIZE] [-p CPUS] [-m SIZE] [-q] [-v] [-h] NODE_NAME
SYNOPSIS
-r RELEASE: Valid ubuntu release [focal impish jammy noble docker] ($ubuntuVer)
-m SIZE : Memory size, defaults (500MB)
-d SIZE : Disk size, defaults (5GB)
-p NUM : Number of CPUs (2)
-M : Mount ${HOME}/Devel inside node
-n : No execution. Only display actions.
-b : Bridge the node. NOTE requires "local.bridged-network" to be specified
-q : Quiet (no output to stdout)
-v : Print version and exit
-h : Print help and exit
String defaultCloudInit
Default cloud-init file if none specified by user.
Definition mkmpnode.sh:61
- Author
- Johan Persson johan.nosp@m.162@.nosp@m.gmail.nosp@m..com
- Copyright
- MIT License. See LICENSE file.