af3b719b73
The group variables originally in ansible/group_vars/ were playbook group variables, due to being adjacent to the playbooks. Typically they provided default values for global variables in the all group, as well as some more specific groups. This has worked fairly well, but results in (at least) a couple of problems. 1. The default variable precedence rules mean that these playbook group variables have a higher precedence than inventory group variables (for a given group). This can make it challenging to override playbook group variables in the inventory in Kayobe configuration. 2. Any playbook run by Kayobe must be in the same directory as the playbook group variables in order to use them. Given that they include variables required for connectivity such as ansible_host and ansible_user, this is quite critical. For Kayobe custom playbooks, we work around this by symlinking to the group_vars directory from the directory containing the custom playbook. This is not an elegant workaround, and has assumptions about the relative paths of the Kayobe configuration and virtual environment in which Kayobe is installed. Story: 2010280 Task: 46233 Change-Id: Ifea5c7e73f6f410f96a7398bfd349d1f631d9fc0
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
---
|
|
###############################################################################
|
|
# iDRAC configuration.
|
|
|
|
# Default username for iDRACs.
|
|
idrac_default_username: root
|
|
|
|
# Default password for iDRACs.
|
|
idrac_default_password: calvin
|
|
|
|
# Default IP address for iDRACs.
|
|
idrac_default_ip: 192.168.0.120
|
|
|
|
# Dict mapping host description (as found in switch interface configuration) to
|
|
# IP address of the iDRAC for that host.
|
|
idrac_network_ips: {}
|
|
|
|
# Gateway IP address for iDRAC network.
|
|
idrac_network_gateway:
|
|
|
|
# IP netmask for iDRAC network.
|
|
idrac_network_netmask:
|
|
|
|
# VLAN for iDRAC network.
|
|
idrac_network_vlan:
|
|
|
|
# ID of VLAN to use for bootstrapping iDRACs.
|
|
idrac_bootstrap_vlan:
|
|
|
|
# Name of network namespace on controller to use for bootstrapping iDRACs.
|
|
idrac_bootstrap_net_namespace: idrac-bootstrap
|
|
|
|
# Controller group to use for bootstrapping iDRACs.
|
|
idrac_bootstrap_controller_group:
|
|
|
|
# Base network interface on controller to use for bootstrapping iDRACs.
|
|
idrac_bootstrap_controller_interface:
|
|
|
|
# VLAN network interface on controller to create for bootstrapping iDRACs.
|
|
idrac_bootstrap_controller_vlan_interface: "{{ idrac_bootstrap_controller_interface }}.{{ idrac_bootstrap_vlan }}"
|
|
|
|
# IP address of controller to use for bootstrapping iDRACs.
|
|
idrac_bootstrap_controller_ip: 192.168.0.1
|
|
|
|
# Name of an Ansible group containing switches forming the iDRAC network.
|
|
idrac_bootstrap_switch_group:
|