a0bd6320a4
There are various playbook group variables used to configure switches, defined in files in ansible/group_vars/switches/. In Ansible 2.3 it was possible to override these via inventory group variables. In Ansible 2.4+ this is no longer possible, and inventory group variables have a lower precedence than playbook group variables. To resolve this, this change moves the switch configuration defaults to the all group, as is done for other global defaults. The slight downside is that these variables enter the namespace of every host, but there aren't too many of them so it shouldn't be a problem. Change-Id: I1a580a7b88a3e088aa7d5129290427320401f46b Story: 2004278 Task: 27827
37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
---
|
|
# Switch configuration.
|
|
|
|
###############################################################################
|
|
# Global configuration.
|
|
|
|
# Global configuration. A list of configuration lines to be applied at the
|
|
# global level.
|
|
switch_config: []
|
|
|
|
###############################################################################
|
|
# Interface configuration.
|
|
|
|
# Interface configuration. Dict mapping switch interface names to configuration
|
|
# dicts. Each dict contains a description item and a 'config' item which should
|
|
# contain a list of additional per-interface configuration.
|
|
# Generally this should be configured on a per-switch basis via a host_vars
|
|
# file.
|
|
switch_interface_config: {}
|
|
|
|
# Interface configuration for enabling hardware discovery. After discovery
|
|
# Neutron owns the configuration of these ports. Has the same format as
|
|
# switch_interface_config.
|
|
# [DEPRECATED] Use switch_interface_config_enable_discovery.
|
|
switch_interface_config_discovery: {}
|
|
|
|
# Interface configuration for enabling hardware discovery. After discovery
|
|
# Neutron owns the configuration of these ports. Has the same format as
|
|
# switch_interface_config.
|
|
# [DEPRECATED NAME] switch_interface_config_discovery.
|
|
switch_interface_config_enable_discovery: "{{ switch_interface_config_discovery }}"
|
|
|
|
# Interface configuration for disabling hardware discovery. After discovery
|
|
# Neutron owns the configuration of these ports. Has the same format as
|
|
# switch_interface_config.
|
|
switch_interface_config_disable_discovery: {}
|