Install

The [[install]] action can execute code to change the configuration of the target machine, i.e., install programs or run commands that alter the configuration.

KeyTypeDefaultDescription
nameStringRequiredA unique name for the installation action.
installStringRequiredThe command to execute for installation. Supports Handlebars.
checkStringA command to check if installation is needed. The install step is skipped if this command exits successfully. Supports Handlebars.
requiresArray of Strings[]A list of tags that must be active for this installation to be processed.
variablesMap of String to String{}Key-value pairs that can be referenced via Handlebars in check and install commands.
orderUnsinged int0The order in which to execute this action. Install actions with the same order number will be potentially be executed in parallel.

UBI Support

The universal binary installer (ubi) is integrated directly into HermitGrab. This allows for seamless installation of tools without relying on external utilities like curl, wget, or decompression tools. You can invoke it from any script or command by calling ubi.

Example

[[install]]
name = "my-tool"
install = "ubi -i [email protected]"
requires = ["os=linux", "arch=aarch64"]