YardmasterYardmaster Docs

Bash runs

A Bash run executes a shell script with bash -c. The script is the run's command, so it can drive any tool on the host: kubectl, aws, terraform, make, and so on. It is the general-purpose escape hatch when a task is not an Ansible play.

What runs

The command is passed to bash -c. The working directory is the project checkout when the run sources a project, so the script reaches the repository's files. A dry run passes bash -n, which parses the script and reports syntax errors without executing it.

How values reach the script

Example

set -euo pipefail
region=$(printf '%s' "$YARDMASTER_VARS" | jq -r '.region // "us-east-1"')
echo "Draining $region"
kubectl --context "$region" drain node-1 --ignore-daemonsets

See also Terraform runs, Python runs, and the tutorials.