arista-switch: Fix eos_config call
eos_config does not support provider, nor connection: local from at
least 2022 [1] - since ansible>=7 (ansible-core 2.14).
[1]: 588d94b2ed
Closes-Bug: #2058365
Change-Id: Ief37b7bee758e34dddb881a9e68728013861c0ec
This commit is contained in:
parent
6e302108a3
commit
32489a4587
@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
# Switch configuration.
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# Authentication configuration.
|
|
||||||
|
|
||||||
# For Arista switches, this defines a 'provider' argument to the eos_*
|
|
||||||
# modules.
|
|
||||||
switch_arista_provider:
|
|
||||||
host: "{{ ansible_host }}"
|
|
||||||
username: "{{ ansible_user }}"
|
|
||||||
password: "{{ ansible_ssh_pass }}"
|
|
||||||
transport: cli
|
|
||||||
authorize: yes
|
|
||||||
auth_pass: "{{ switch_auth_pass }}"
|
|
||||||
timeout: "{{ switch_arista_timeout }}"
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# Timeout in seconds for completion of the switch config as a transaction
|
|
||||||
switch_arista_timeout: 60
|
|
||||||
|
|
||||||
...
|
|
@ -1,6 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Ensure Arista switches are configured
|
- name: Ensure Arista switches are configured
|
||||||
local_action:
|
eos_config:
|
||||||
module: eos_config
|
|
||||||
provider: "{{ arista_switch_provider }}"
|
|
||||||
src: arista-config.j2
|
src: arista-config.j2
|
||||||
|
@ -193,16 +193,13 @@ modules.
|
|||||||
|
|
||||||
``switch_type`` should be set to ``arista``.
|
``switch_type`` should be set to ``arista``.
|
||||||
|
|
||||||
Provider
|
|
||||||
^^^^^^^^
|
|
||||||
|
|
||||||
* ``ansible_host`` is the hostname or IP address. Optional.
|
* ``ansible_host`` is the hostname or IP address. Optional.
|
||||||
|
|
||||||
* ``ansible_user`` is the SSH username.
|
* ``ansible_user`` is the SSH username.
|
||||||
|
|
||||||
* ``ansible_ssh_pass`` is the SSH password.
|
* ``ansible_ssh_pass`` is the SSH password.
|
||||||
|
* ``ansible_connection`` should be ``ansible.netcommon.network_cli``.
|
||||||
* ``switch_auth_pass`` is the 'enable' password.
|
* ``ansible_network_os`` should be ``arista.eos.eos``.
|
||||||
|
* ``ansible_become`` should be ``true``.
|
||||||
|
* ``ansible_become_method`` should be ``enable``.
|
||||||
|
|
||||||
Cumulus Linux (with NCLU)
|
Cumulus Linux (with NCLU)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
7
releasenotes/notes/bug-2058365-a9acdb3cdf2a29f9.yaml
Normal file
7
releasenotes/notes/bug-2058365-a9acdb3cdf2a29f9.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
``eos_config`` does not support the ``provider`` parameter since Ansible 7.
|
||||||
|
Users are required to update their configuration according to `Arista EOS
|
||||||
|
documentation
|
||||||
|
<https://docs.openstack.org/kayobe/latest/configuration/reference/physical-network.html#arista-eos>`_.
|
Loading…
Reference in New Issue
Block a user