Merge "arista-switch: Fix eos_config call"

This commit is contained in:
Zuul 2024-09-06 23:27:43 +00:00 committed by Gerrit Code Review
commit 242f3452e1
4 changed files with 12 additions and 32 deletions

View File

@ -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
...

View File

@ -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

View File

@ -195,16 +195,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)
-------------------------

View 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>`_.