package
An OS package, installed with dnf on the Red Hat family and apt on Debian and Ubuntu.
step "example" { package { name = "..." }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Package name. |
on_remove |
string | No | What happens on the host when this resource is removed: “forget” (default) leaves the package, “delete” uninstalls it. |
state |
string | No | “present” (default), “latest” or “absent”. |
version |
string | No | Version to install, with state “present”. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_package.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
installed_version |
string | Version installed on the host, or null when it isn’t installed. |
latest_version |
string | Newest available version, read when state is “latest”. |
A step lowers to the conn3x_package resource, one instance per host, and connects with its circuit’s ssh block.