d8ee0fa027
--- 1. Gather facts for localhost in kolla-ansible.yml 2. Don't include unconfigured networks in network_interfaces 3. Added Keystone configuration extra config merge --- 1. Facts are necessary for the kolla-ansible role, which references the ansible_user_uid fact 2. It is possible to skip configuring a network, by setting its name to None This is done in networks.yml as follows: admin_oc_net_name: Currently, these networks may still be included in the 'network_interfaces' list for each host, despite the fact that they are not in use. A classic example is when ironic is not enabled, it is currently still necessary to define provisioning and cleaning networks. This change avoids including any networks that have their name set to None in network_interfaces. 3. Added support for Keystone custom configuration Added tests and documentation to add support for keystone extra configuration Co-Authored-By: Mark Goddard <mark@stackhpc.com Change-Id: Iaa304221b8093ac71f9cdbb23edc84d1517578da
129 lines
4.9 KiB
Plaintext
129 lines
4.9 KiB
Plaintext
---
|
|
###############################################################################
|
|
# Seed hypervisor node configuration.
|
|
|
|
# User with which to access the seed hypervisor via SSH during bootstrap, in
|
|
# order to setup the Kayobe user account.
|
|
seed_hypervisor_bootstrap_user: "{{ lookup('env', 'USER') }}"
|
|
|
|
###############################################################################
|
|
# Seed hypervisor network interface configuration.
|
|
|
|
# List of networks to which seed hypervisor nodes are attached.
|
|
seed_hypervisor_network_interfaces: >
|
|
{{ (seed_hypervisor_default_network_interfaces +
|
|
seed_hypervisor_extra_network_interfaces) | reject('none') | unique | list }}
|
|
|
|
# List of default networks to which seed hypervisor nodes are attached.
|
|
seed_hypervisor_default_network_interfaces: "{{ seed_default_network_interfaces }}"
|
|
|
|
# List of extra networks to which seed hypervisor nodes are attached.
|
|
seed_hypervisor_extra_network_interfaces: "{{ seed_extra_network_interfaces }}"
|
|
|
|
###############################################################################
|
|
# Seed hypervisor node software RAID configuration.
|
|
|
|
# List of software RAID arrays. See mrlesmithjr.mdadm role for format.
|
|
seed_hypervisor_mdadm_arrays: []
|
|
|
|
###############################################################################
|
|
# Seed hypervisor node LVM configuration.
|
|
|
|
# List of seed hypervisor volume groups. See mrlesmithjr.manage-lvm role for
|
|
# format. Set to "{{ seed_hypervisor_lvm_groups_with_data }}" to create a
|
|
# volume group for libvirt storage.
|
|
seed_hypervisor_lvm_groups: []
|
|
|
|
# Suggested list of seed hypervisor volume groups for libvirt. Not used by default.
|
|
seed_hypervisor_lvm_groups_with_data:
|
|
- "{{ seed_hypervisor_lvm_group_data }}"
|
|
|
|
# Seed LVM volume group for data. See mrlesmithjr.manage-lvm role for format.
|
|
seed_hypervisor_lvm_group_data:
|
|
vgname: data
|
|
disks: "{{ seed_hypervisor_lvm_group_data_disks }}"
|
|
create: True
|
|
lvnames: "{{ seed_hypervisor_lvm_group_data_lvs }}"
|
|
|
|
# List of disks for use by seed hypervisor LVM data volume group. Default to an
|
|
# invalid value to require configuration.
|
|
seed_hypervisor_lvm_group_data_disks:
|
|
- changeme
|
|
|
|
# List of LVM logical volumes for the data volume group.
|
|
seed_hypervisor_lvm_group_data_lvs:
|
|
- "{{ seed_hypervisor_lvm_group_data_lv_libvirt_storage }}"
|
|
|
|
# Libvirt storage LVM backing volume.
|
|
seed_hypervisor_lvm_group_data_lv_libvirt_storage:
|
|
lvname: libvirt-storage
|
|
size: "{{ seed_hypervisor_lvm_group_data_lv_libvirt_storage_size }}"
|
|
create: True
|
|
filesystem: "{{ seed_hypervisor_lvm_group_data_lv_libvirt_storage_fs }}"
|
|
mount: True
|
|
mntp: "{{ seed_hypervisor_libvirt_pool_path }}"
|
|
|
|
# Size of libvirt storage LVM backing volume.
|
|
seed_hypervisor_lvm_group_data_lv_libvirt_storage_size: 100%VG
|
|
|
|
# Filesystem for libvirt storage LVM backing volume. ext4 allows for shrinking.
|
|
seed_hypervisor_lvm_group_data_lv_libvirt_storage_fs: ext4
|
|
|
|
###############################################################################
|
|
# Seed hypervisor libvirt storage pool configuration.
|
|
|
|
# List of libvirt storage pools for the seed hypervisor.
|
|
seed_hypervisor_libvirt_pools:
|
|
- "{{ seed_hypervisor_libvirt_pool }}"
|
|
|
|
# Libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool:
|
|
name: "{{ seed_hypervisor_libvirt_pool_name }}"
|
|
type: dir
|
|
capacity: "{{ seed_hypervisor_libvirt_pool_capacity }}"
|
|
path: "{{ seed_hypervisor_libvirt_pool_path }}"
|
|
mode: "{{ seed_hypervisor_libvirt_pool_mode }}"
|
|
owner: "{{ seed_hypervisor_libvirt_pool_owner }}"
|
|
group: "{{ seed_hypervisor_libvirt_pool_group }}"
|
|
|
|
# Name of the libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool_name: "default"
|
|
|
|
# Capacity of the libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool_capacity: "{{ 75 * 2**30 }}"
|
|
|
|
# Directory path of the libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool_path: "/var/lib/libvirt/images"
|
|
|
|
# Directory mode of the libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool_mode: 711
|
|
|
|
# Directory owner of the libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool_owner: "root"
|
|
|
|
# Directory group of the libvirt storage pool for the seed VM.
|
|
seed_hypervisor_libvirt_pool_group: "root"
|
|
|
|
###############################################################################
|
|
# Seed hypervisor libvirt network configuration.
|
|
|
|
# List of libvirt networks for the seed hypervisor.
|
|
seed_hypervisor_libvirt_networks: >
|
|
{{ network_interfaces |
|
|
net_select_bridges |
|
|
map('net_libvirt_network') |
|
|
list }}
|
|
|
|
###############################################################################
|
|
# Seed hypervisor sysctl configuration.
|
|
|
|
# Dict of sysctl parameters to set.
|
|
seed_hypervisor_sysctl_parameters: {}
|
|
|
|
###############################################################################
|
|
# Seed hypervisor user configuration.
|
|
|
|
# List of users to create. This should be in a format accepted by the
|
|
# singleplatform-eng.users role.
|
|
seed_hypervisor_users: "{{ users_default }}"
|