cron
A job in /etc/cron.d.
step "example" { cron { command = "..." name = "..." schedule = "..." }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
command |
string | Yes | Command to run. |
name |
string | Yes | File name in /etc/cron.d: letters, digits, - and _. |
on_remove |
string | No | “delete” (default) removes the job, “forget” leaves it. |
schedule |
string | Yes | Five cron fields, or a macro such as @daily. |
user |
string | No | User the job runs as. Defaults to root. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_cron.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
in_sync |
bool | Whether the job on the host matches. |
A step lowers to the conn3x_cron resource, one instance per host, and connects with its circuit’s ssh block.