d6aa4ea16e
Adds a new 'os_distribution' variable which can be used to select the OS distribution, with sensible defaults for other variables. The default value is 'centos'. This patch changes the default value for the '*_bootstrap_user' variables from using the $USER environment variable to using fixed defaults equal to the os_distribution variable. This aligns with the standard user configured in most cloud images, and images created via DIB. Note that we are continuing to use a CentOS based IPA image, since we have been unable to get IPA to build for Ubuntu. Depends-On: https://review.opendev.org/c/openstack/kayobe-config-dev/+/788234 Change-Id: I9e10239f58fe209867116fa2e10f1ce74220b966 Story: 2004960 Task: 42323
63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
---
|
|
###############################################################################
|
|
# Seed node VM configuration.
|
|
|
|
# Name of the seed VM.
|
|
seed_vm_name: "{{ inventory_hostname }}"
|
|
|
|
# Memory in MB.
|
|
seed_vm_memory_mb: "{{ 16 * 1024 }}"
|
|
|
|
# Number of vCPUs.
|
|
seed_vm_vcpus: 4
|
|
|
|
# List of volumes.
|
|
seed_vm_volumes:
|
|
- "{{ seed_vm_root_volume }}"
|
|
- "{{ seed_vm_data_volume }}"
|
|
|
|
# Root volume.
|
|
seed_vm_root_volume:
|
|
name: "{{ seed_vm_name }}-root"
|
|
pool: "{{ seed_vm_pool }}"
|
|
capacity: "{{ seed_vm_root_capacity }}"
|
|
format: "{{ seed_vm_root_format }}"
|
|
image: "{{ seed_vm_root_image }}"
|
|
|
|
# Data volume.
|
|
seed_vm_data_volume:
|
|
name: "{{ seed_vm_name }}-data"
|
|
pool: "{{ seed_vm_pool }}"
|
|
capacity: "{{ seed_vm_data_capacity }}"
|
|
format: "{{ seed_vm_data_format }}"
|
|
|
|
# Name of the storage pool for the seed VM volumes.
|
|
seed_vm_pool: default
|
|
|
|
# Capacity of the seed VM root volume.
|
|
seed_vm_root_capacity: 50G
|
|
|
|
# Format of the seed VM root volume.
|
|
seed_vm_root_format: qcow2
|
|
|
|
# Base image for the seed VM root volume. Default is
|
|
# "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
|
|
# when os_distribution is "ubuntu", or
|
|
# "https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2"
|
|
# otherwise.
|
|
seed_vm_root_image: >-
|
|
{%- if os_distribution == 'ubuntu' %}
|
|
https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
|
|
{%- else -%}
|
|
https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2
|
|
{%- endif %}
|
|
|
|
# Capacity of the seed VM data volume.
|
|
seed_vm_data_capacity: 100G
|
|
|
|
# Format of the seed VM data volume.
|
|
seed_vm_data_format: qcow2
|
|
|
|
# List of network interfaces to attach to the seed VM.
|
|
seed_vm_interfaces: "{{ network_interfaces | sort | map('net_libvirt_vm_network') | list }}"
|