kayobe/releasenotes/notes/os-distribution-69445eb19a611d43.yaml
Mark Goddard d6aa4ea16e Ubuntu: simplify OS distro selection
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
2021-04-29 11:16:42 +01:00

15 lines
651 B
YAML

---
features:
- |
Adds an ``os_distribution`` variable in ``etc/kayobe/globals.yml``, with a
default value of ``centos``. The variable can also be set to ``ubuntu``,
and sets sensible default values for other variables.
upgrade:
- |
Modifies the default value of ``controller_bootstrap_user``,
``compute_bootstrap_user``, ``seed_bootstrap_user``,
``seed_hypervisor_bootstrap_user`` and ``storage_bootstrap_user`` from
using the ``$USER`` environment variable of the Ansible control host to
``os_distribution``. This provides a more predictable default that does not
depend on the Ansible execution environment.