command
A shell command, for what no module covers yet. Guards say when it has already done its job.
step "example" { command { command = "..." }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
command |
string | Yes | Shell command, run with /bin/sh. |
creates |
string | No | Skip the command while this path exists. |
removes |
string | No | Skip the command while this path is missing. |
triggers |
dynamic | No | Any value; the command runs again whenever it changes. |
unless |
string | No | Skip the command while this check command succeeds. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_command.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
satisfied |
bool | Whether the guards hold on the host. |
stderr |
string | Error output of the last run, truncated to 4 KiB. |
stdout |
string | Output of the last run, truncated to 4 KiB. |
A step lowers to the conn3x_command resource, one instance per host, and connects with its circuit’s ssh block.