Skip to content
Snippets Groups Projects
Commit 242f3452 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "arista-switch: Fix eos_config call"

parents 82b02cb7 32489a45
No related branches found
No related tags found
No related merge requests found
---
# 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
...
---
- name: Ensure Arista switches are configured
local_action:
module: eos_config
provider: "{{ arista_switch_provider }}"
eos_config:
src: arista-config.j2
......@@ -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)
-------------------------
......
---
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment