junos_hostname
Experimental. A Juniper Junos device’s host name. 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 vJunos-switch 26.2R1.7 on a lab VM, not yet in CI.
Use junos_hostname to name a Juniper Junos device. The change goes in like every Junos step does: a dry run first, then commit confirmed, then a confirm over a new login, once per device per circuit. See junos_config.
Example usage
Section titled “Example usage”step "name" { junos_hostname { name = each.key }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Host name, such as sw1. Junos takes letters, digits, hyphens and dots. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_junos_hostname.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
in_sync |
bool | Whether the device 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_junos_hostname resource, one instance per host, and connects with its circuit’s ssh block.