eos_hostname
Experimental. An Arista EOS switch’s hostname. Removing this step leaves the name as it is.
Experimental. Network devices are new, and this module may change between releases. It’s tested against cEOS-lab 4.37.0F on a local machine, not yet in CI.
Use eos_hostname to name an Arista EOS switch. The change goes through a config session with a revert timer, like every EOS step, including the wait before the confirm, which since v0.10.0 is paid once per switch per apply, not once per step; see eos_config.
Example usage
Section titled “Example usage”step "name" { eos_hostname { name = each.key }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Hostname, such as leaf1. EOS takes letters, digits, hyphens and dots. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_eos_hostname.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
in_sync |
bool | Whether the switch had this name at the last refresh. |
revision |
string | Changes each time Conn3x changes this on the host. Handlers watch it. |
A step lowers to the conn3x_eos_hostname resource, one instance per host, and connects with its circuit’s ssh block.