Files
kayobe-config-dev/etc/kayobe/globals.yml
Pierre Riteau 3e1ffcc35a CI: Set os_release from host operating system
This will be used for testing centos/rocky 9 and 10 on the same branch.

Also explain why these variables are not simplified using Ansible facts.

Change-Id: Ida19ee1123a59d19aa2bc7abae3cf5d1ea1c985c
Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
2025-09-30 13:26:16 +02:00

89 lines
3.3 KiB
YAML

---
# Kayobe global configuration.
###############################################################################
# Local path configuration (Ansible control host).
# Path to Kayobe configuration directory on Ansible control host.
#kayobe_config_path:
# Name of Kayobe environment to use. Default is $KAYOBE_ENVIRONMENT, or an
# empty string if $KAYOBE_ENVIRONMENT is not set. Can also be set via the
# --environment argument when invoking kayobe.
#kayobe_environment:
# Path to Kayobe configuration directory on Ansible control host with an
# environment path appended if kayobe_environment is set.
#kayobe_env_config_path:
###############################################################################
# Remote path configuration (seed, seed-hypervisor and overcloud hosts).
# Base path for kayobe state on remote hosts.
#base_path:
# Path in which to store configuration on remote hosts.
#config_path:
# Path in which to cache downloaded images on remote hosts.
#image_cache_path:
# Path on which to checkout source code repositories on remote hosts.
#source_checkout_path:
# Path on which to create python virtualenvs on remote hosts.
#virtualenv_path:
###############################################################################
# User configuration.
# User with which to access remote hosts. This user will be created if it does
# not exist.
#kayobe_ansible_user:
###############################################################################
# OS distribution.
# OS distribution name. Valid options are "centos", "rocky", "ubuntu". Default
# is "rocky".
# NOTE: Avoids using Ansible facts to be compatible with gather_facts: false
os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
# OS release. Valid options are "9-stream" when os_distribution is "centos", or
# "9" when os_distribution is "rocky", or "noble" when os_distribution is
# "ubuntu".
# NOTE: Avoids using Ansible facts to be compatible with gather_facts: false
# yamllint disable-line rule:line-length
os_release: "{{ 'noble' if os_distribution == 'ubuntu' else lookup('pipe', '. /etc/os-release && echo $VERSION_ID | cut -d . -f 1') | trim }}{{ '-stream' if os_distribution == 'centos' else '' }}"
###############################################################################
# Ansible configuration.
# Filter to apply to the setup module when gathering facts. Default is to not
# specify a filter.
#kayobe_ansible_setup_filter:
# Gather subset to apply to the setup module when gathering facts. Default is
# to not specify a gather subset.
#kayobe_ansible_setup_gather_subset:
# Global maximum failure percentage. By default this is undefined, which is
# equivalent to a value of 100.
#kayobe_max_fail_percentage:
# Whether or not we should try and escalate privileges on the control host.
# This allows us to install packages and create arbitrary directories that our
# user would not normally have permission to create. Default is true.
#kayobe_control_host_become:
###############################################################################
# SELinux configuration.
# Don't reboot after disabling SELinux in all-in-one environments, as Ansible
# is typically run directly on the controller.
selinux_do_reboot: false
###############################################################################
# Dummy variable to allow Ansible to accept this file.
workaround_ansible_issue_8743: yes