Add os_release variable, build CentOS stream images

* add os_release variable
* build CentOS stream overcloud root disk images
* build CentOS stream IPA images

Story: 2008795
Task: 42417

Change-Id: I3d231076052fbfa8416f34c038c02fd10a1c37f2
This commit is contained in:
Mark Goddard 2021-04-30 16:37:52 +01:00
parent 42a1303737
commit 1cac2ccbc8
6 changed files with 19 additions and 6 deletions

View File

@ -21,9 +21,8 @@ kolla_bifrost_firewalld_internal_zone: trusted
# DIB base OS element. Default is {{ os_distribution }}.
kolla_bifrost_dib_os_element: "{{ os_distribution }}"
# DIB image OS release. Default is "focal" when os_distribution is "ubuntu", or
# "8" otherwise.
kolla_bifrost_dib_os_release: "{{ 'focal' if os_distribution == 'ubuntu' else '8' }}"
# DIB image OS release. Default is {{ os_release }}.
kolla_bifrost_dib_os_release: "{{ os_release }}"
# List of default DIB elements. Default is ["disable-selinux",
# "enable-serial-console", "vm"] when os_distribution is "centos", or

View File

@ -47,3 +47,7 @@ kayobe_ansible_user: "stack"
# OS distribution name. Valid options are "centos", "ubuntu". Default is
# "centos".
os_distribution: "centos"
# OS release. Valid options are "8-stream" when os_distribution is "centos", or
# "focal" when os_distribution is "ubuntu".
os_release: "{{ '8-stream' if os_distribution == 'centos' else 'focal' }}"

View File

@ -23,6 +23,7 @@ ipa_builder_source_version: master
# images. Default is ["centos", "enable-serial-console",
# "ironic-python-agent-ramdisk"].
ipa_build_dib_elements_default:
# TODO(mgoddard): Use {{ os_distribution }} here when Ubuntu IPA builds work.
- centos
- enable-serial-console
- ironic-python-agent-ramdisk
@ -41,6 +42,9 @@ ipa_build_dib_elements: >
# Dictionary of default environment variables to provide to Diskimage Builder
# (DIB) during IPA image build.
ipa_build_dib_env_default:
# TODO(mgoddard): Use {{ os_release }} here when we use os_distribution
# above.
DIB_RELEASE: "8-stream"
DIB_REPOLOCATION_ironic_agent: "{{ ipa_build_source_url }}"
DIB_REPOREF_ironic_agent: "{{ ipa_build_source_version }}"

View File

@ -21,8 +21,7 @@
# DIB base OS element. Default is {{ os_distribution }}.
#kolla_bifrost_dib_os_element:
# DIB image OS release. Default is "focal" when os_distribution is "ubuntu", or
# "8" otherwise.
# DIB image OS release. Default is {{ os_release }}.
#kolla_bifrost_dib_os_release:
# List of default DIB elements. Default is ["disable-selinux",

View File

@ -49,6 +49,10 @@
# "centos".
#os_distribution:
# OS release. Valid options are "8-stream" when os_distribution is "centos", or
# "focal" when os_distribution is "ubuntu".
#os_release:
###############################################################################
# Dummy variable to allow Ansible to accept this file.
workaround_ansible_issue_8743: yes

View File

@ -3,7 +3,10 @@ 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.
and sets sensible default values for other variables. Also adds an
``os_release`` variable in the same file, with a default value of
``8-stream`` when ``os_distribution`` is ``centos`` or ``focal`` when
``os_distribution`` is ``ubuntu``.
upgrade:
- |
Modifies the default value of ``controller_bootstrap_user``,