CONFIGURE_POWERSWITCHES.md 2.7 KB

Configuring Dell EMC PowerSwitches

Update the input parameters

Under the control_plane/input_params directory, edit the following files:

  1. base_vars.yml file: Update the following variable to enable or disable Ethernet switch configurations in the cluster.

    Variable Default, choices Description
    ethernet_switch_support
    • false
    • true
    Set the variable to "true" to enable Ethernet switch configurations.
  2. login_vars.yml file: Enter the following details to configure Ethernet switches.
    a. ethernet_switch_username- username for Ethernet switches.
    NOTE: The username must not contain the following characters: -, \, "", and \'
    b. ethernet_switch_password- password for Ethernet switches.
    NOTE: Minimum length of the password must be eight characters and the maximum limit is 30 characters. Do not use these characters while entering a password: -, \, "", and \'

  3. ethernet_vars.yml file: If ethernet_switch_support is set to "true" in the base_vars.yml file, then update the following variables.

    The interfaces are from ethernet 1/1/1 to ethernet 1/1/30. For more information about the interfaces, see the Supported interface keys of PowerSwitch S3048-ON (ToR Switch) section in the README file. NOTE: The playbooks will fail if any invalid configurations are entered.WARNING: When set to "true", the startup configuration file is updated. If incorrect configurations or commands are entered, the Ethernet switches may not operate as expected.
    Variables Default, choices Description
    os10_config
    • "interface vlan1"
    • "exit"
    Global configurations for the switch.
    os10_interface By default:
    • Port description is provided.
    • Each interface is set to "up" state.
    Update the individual interfaces of the PowerSwitch S3048-ON (ToR Switch).
    save_changes_to_startup
    • false
    • true
    Change it to "true" only when you are certain that the updated configurations and commands are valid.

Configuring PowerSwitches

Run ethernet_template on the AWX UI.

  1. Run kubectl get svc -n awx.
  2. Copy the Cluster-IP address of the awx-service.
  3. To retrieve the AWX UI password, run kubectl get secret awx-admin-password -n awx -o jsonpath="{.data.password}" | base64 --decode.
  4. Open the default web browser on the management station and enter the awx-service IP address. Log in to the AWX UI using the username as admin and the retrieved password.
  5. Under RESOURCES -> Templates, launch the ethernet_template.