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.
Key | Type | Default | Description |
---|---|---|---|
name | String | Required | A unique name for the installation action. |
install | String | Required | The command to execute for installation. Supports Handlebars. |
check | String | A command to check if installation is needed. The install step is skipped if this command exits successfully. Supports Handlebars. | |
requires | Array of Strings | [] | A list of tags that must be active for this installation to be processed. |
variables | Map of String to String | {} | Key-value pairs that can be referenced via Handlebars in check and install commands. |
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"]