mptools 2.3.0
Utility to create multipass virtual nodes
Loading...
Searching...
No Matches
mpn.sh File Reference

mpn.sh - Setup nodes using naming convention More...

Variables

String nodecachefile = $(mktemp /tmp/mplist.XXXXXXXXXXXXX)
 Cache result to temp file during one runt of the script since multipass list it is a slow operation.
 
String INSTALL_PREFIX = "/usr/local"
 Default installation path.
 
String INSTALL_BIN_DIR = "${INSTALL_PREFIX}/bin"
 Default installation path for executables.
 
String MKMPNODE_SCRIPT = "./mkmpnode.sh"
 Name of the mkmpnode script we call.
 
String INSTALL_USERCLOUDINIT_DIR = ${HOME}/.mptools
 Directory where to find the user specific *.yaml files.
 
String SCRIPT_DIR = ""
 This will hold the name of the directory from where this script is executed.
 
Integer quiet_flag = 0
 Suppress output.
 
String nodes = ""
 String of nodes names to create.
 
String nodeList = ("")
 The string of nodes converted to a list.
 
Integer noexec = 0
 Flag for dryrun.
 
String red = "\033[31m"
 Terminal color for error messages.
 
String default = "\033[39m"
 Restore default terminal color.
 
ReadOnly String CLOUD_CONFIG_F = "fulldev-config.yaml"
 Cloud file for full development environment.
 
ReadOnly String CLOUD_CONFIG_B = "mini-config.yaml"
 Cloud file for minimal node config.
 
ReadOnly String CLOUD_CONFIG_M = "minidev-config.yaml"
 Cloud file for minimal development environment.
 
ReadOnly String MACHINE_CONFIG_S = "-m 500MB -d 5GB"
 Size configuration for a small node.
 
ReadOnly String MACHINE_CONFIG_M = "-m 1GB -d 7GB"
 Size configuration for a medium node.
 
ReadOnly String MACHINE_CONFIG_E = "-m 3GB -d 7GB"
 Size configuration for an expanded node.
 
ReadOnly String MACHINE_CONFIG_L = "-m 2GB -d 10GB"
 Size configuration for a large node.
 
ReadOnly String MACHINE_CONFIG_X = "-m 4GB -d 10GB"
 Size configuration for a x-large node.
 
ReadOnly String MACHINE_CONFIG_H = "-m 8GB -d 15GB"
 Size configuration for a humongous node.
 
ReadOnly String MACHINE_CONFIG_Z = "-m 12GB -d 15GB"
 Size configuration for a zuper humongous node.
 
ReadOnly String IMAGE_UB24 = noble
 Image to use for a 24 node.
 
ReadOnly String IMAGE_UB22 = jammy
 Image to use for a 22 node.
 
ReadOnly String IMAGE_UB20 = focal
 Image to use for a 20 node.
 
String bridged =
 Setup the node for bridged network (or not) defaults to "not".
 

Detailed Description

mpn.sh - Setup nodes using naming convention

NAME
mpn - Create multipass node by naming convention
USAGE
mpn [-h] [-v] [-s] NODE_NAME [NODE_NAME [NODE_NAME ... ]]
SYNOPSIS
-h : Print help and exit
-b : Bridge the nodes (make them available on the local network)
-n : No execution. Only display actions.
-s : Silent
-v : Print version and exit
String nodes
String of nodes names to create.
Definition mpn.sh:48
Author
Johan Persson johan.nosp@m.162@.nosp@m.gmail.nosp@m..com