service
A systemd unit: whether it runs, and whether it starts at boot.
step "example" { service { name = "..." }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
enabled |
bool | No | Start at boot. Left as is when unset. |
name |
string | Yes | Unit name. “.service” is added when there is no suffix. |
on_remove |
string | No | What happens on the host when this resource is removed: “forget” (default) leaves the unit, “delete” stops and disables it. |
state |
string | No | “started” or “stopped”. Left as is when unset. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_service.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
is_enabled |
bool | Whether the unit starts at boot. |
running |
bool | Whether the unit is running. |
A step lowers to the conn3x_service resource, one instance per host, and connects with its circuit’s ssh block.