Add Dell PowerConnect switch support

PowerConnect switches do not support the dellos Ansible modules, since
they are based on DellOS version 4. This role uses the expect module to
perform simple switch configuration.

Change-Id: Icb59aaff75f9faf089423610fecb06598f75e35e
Story: 2002106
Task: 19784
This commit is contained in:
Mark Goddard 2018-05-24 18:19:51 +01:00
parent 16d837710a
commit 920d9e0eee
4 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,12 @@
---
# Switch configuration.
###############################################################################
# Authentication configuration.
# For DellOS switches, this defines a 'provider' argument to the
# dell_powerconnect_switch role.
switch_dell_powerconnect_provider:
host: "{{ ansible_host }}"
username: "{{ ansible_user }}"
auth_pass: "{{ switch_auth_pass }}"

View File

@ -81,6 +81,18 @@
dell_switch_config: "{{ switch_config }}" dell_switch_config: "{{ switch_config }}"
dell_switch_interface_config: "{{ switch_interface_config }}" dell_switch_interface_config: "{{ switch_interface_config }}"
- name: Ensure Dell PowerConnect physical switches are configured
hosts: switches_of_type_dell-powerconnect:&switches_in_display_mode_False
gather_facts: no
roles:
- role: ssh-known-host
- role: stackhpc.dell-powerconnect-switch
dell_powerconnect_switch_type: "{{ switch_type }}"
dell_powerconnect_switch_provider: "{{ switch_dell_powerconnect_provider }}"
dell_powerconnect_switch_config: "{{ switch_config }}"
dell_powerconnect_switch_interface_config: "{{ switch_interface_config }}"
- name: Ensure Juniper physical switches are configured - name: Ensure Juniper physical switches are configured
hosts: switches_of_type_junos:&switches_in_display_mode_False hosts: switches_of_type_junos:&switches_in_display_mode_False
gather_facts: no gather_facts: no

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds support for configuration of Dell PowerConnect switches. This is
integrated with the `kayobe physical network configure` command.

View File

@ -8,6 +8,7 @@
- src: https://github.com/stackhpc/ansible-users - src: https://github.com/stackhpc/ansible-users
version: append version: append
name: singleplatform-eng.users name: singleplatform-eng.users
- src: stackhpc.dell-powerconnect-switch
- src: stackhpc.drac - src: stackhpc.drac
- src: stackhpc.drac-facts - src: stackhpc.drac-facts
- src: stackhpc.grafana-conf - src: stackhpc.grafana-conf