Skip to content

Commit

Permalink
arista-switch: Fix eos_config call
Browse files Browse the repository at this point in the history
eos_config does not support provider, nor connection: local from at
least 2022 [1] - since ansible>=7 (ansible-core 2.14).

[1]: ansible-collections/arista.eos@588d94b

Closes-Bug: #2058365
Change-Id: Ief37b7bee758e34dddb881a9e68728013861c0ec
(cherry picked from commit 32489a4)
  • Loading branch information
mnasiadka authored and priteau committed Sep 7, 2024
1 parent ace210f commit afacd33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 32 deletions.
22 changes: 0 additions & 22 deletions ansible/inventory/group_vars/all/switches/arista

This file was deleted.

4 changes: 1 addition & 3 deletions ansible/roles/arista-switch/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
- name: Ensure Arista switches are configured
local_action:
module: eos_config
provider: "{{ arista_switch_provider }}"
eos_config:
src: arista-config.j2
11 changes: 4 additions & 7 deletions doc/source/configuration/reference/physical-network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,13 @@ modules.

``switch_type`` should be set to ``arista``.

Provider
^^^^^^^^

* ``ansible_host`` is the hostname or IP address. Optional.

* ``ansible_user`` is the SSH username.

* ``ansible_ssh_pass`` is the SSH password.

* ``switch_auth_pass`` is the 'enable' password.
* ``ansible_connection`` should be ``ansible.netcommon.network_cli``.
* ``ansible_network_os`` should be ``arista.eos.eos``.
* ``ansible_become`` should be ``true``.
* ``ansible_become_method`` should be ``enable``.

Cumulus Linux (with NCLU)
-------------------------
Expand Down
7 changes: 7 additions & 0 deletions releasenotes/notes/bug-2058365-a9acdb3cdf2a29f9.yaml
Original file line number Diff line number Diff line change
@@ -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>`_.

0 comments on commit afacd33

Please sign in to comment.