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:
parent
42a1303737
commit
1cac2ccbc8
@ -21,9 +21,8 @@ kolla_bifrost_firewalld_internal_zone: trusted
|
|||||||
# DIB base OS element. Default is {{ os_distribution }}.
|
# DIB base OS element. Default is {{ os_distribution }}.
|
||||||
kolla_bifrost_dib_os_element: "{{ os_distribution }}"
|
kolla_bifrost_dib_os_element: "{{ os_distribution }}"
|
||||||
|
|
||||||
# DIB image OS release. Default is "focal" when os_distribution is "ubuntu", or
|
# DIB image OS release. Default is {{ os_release }}.
|
||||||
# "8" otherwise.
|
kolla_bifrost_dib_os_release: "{{ os_release }}"
|
||||||
kolla_bifrost_dib_os_release: "{{ 'focal' if os_distribution == 'ubuntu' else '8' }}"
|
|
||||||
|
|
||||||
# List of default DIB elements. Default is ["disable-selinux",
|
# List of default DIB elements. Default is ["disable-selinux",
|
||||||
# "enable-serial-console", "vm"] when os_distribution is "centos", or
|
# "enable-serial-console", "vm"] when os_distribution is "centos", or
|
||||||
|
@ -47,3 +47,7 @@ kayobe_ansible_user: "stack"
|
|||||||
# OS distribution name. Valid options are "centos", "ubuntu". Default is
|
# OS distribution name. Valid options are "centos", "ubuntu". Default is
|
||||||
# "centos".
|
# "centos".
|
||||||
os_distribution: "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' }}"
|
||||||
|
@ -23,6 +23,7 @@ ipa_builder_source_version: master
|
|||||||
# images. Default is ["centos", "enable-serial-console",
|
# images. Default is ["centos", "enable-serial-console",
|
||||||
# "ironic-python-agent-ramdisk"].
|
# "ironic-python-agent-ramdisk"].
|
||||||
ipa_build_dib_elements_default:
|
ipa_build_dib_elements_default:
|
||||||
|
# TODO(mgoddard): Use {{ os_distribution }} here when Ubuntu IPA builds work.
|
||||||
- centos
|
- centos
|
||||||
- enable-serial-console
|
- enable-serial-console
|
||||||
- ironic-python-agent-ramdisk
|
- ironic-python-agent-ramdisk
|
||||||
@ -41,6 +42,9 @@ ipa_build_dib_elements: >
|
|||||||
# Dictionary of default environment variables to provide to Diskimage Builder
|
# Dictionary of default environment variables to provide to Diskimage Builder
|
||||||
# (DIB) during IPA image build.
|
# (DIB) during IPA image build.
|
||||||
ipa_build_dib_env_default:
|
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_REPOLOCATION_ironic_agent: "{{ ipa_build_source_url }}"
|
||||||
DIB_REPOREF_ironic_agent: "{{ ipa_build_source_version }}"
|
DIB_REPOREF_ironic_agent: "{{ ipa_build_source_version }}"
|
||||||
|
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
# DIB base OS element. Default is {{ os_distribution }}.
|
# DIB base OS element. Default is {{ os_distribution }}.
|
||||||
#kolla_bifrost_dib_os_element:
|
#kolla_bifrost_dib_os_element:
|
||||||
|
|
||||||
# DIB image OS release. Default is "focal" when os_distribution is "ubuntu", or
|
# DIB image OS release. Default is {{ os_release }}.
|
||||||
# "8" otherwise.
|
|
||||||
#kolla_bifrost_dib_os_release:
|
#kolla_bifrost_dib_os_release:
|
||||||
|
|
||||||
# List of default DIB elements. Default is ["disable-selinux",
|
# List of default DIB elements. Default is ["disable-selinux",
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
# "centos".
|
# "centos".
|
||||||
#os_distribution:
|
#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.
|
# Dummy variable to allow Ansible to accept this file.
|
||||||
workaround_ansible_issue_8743: yes
|
workaround_ansible_issue_8743: yes
|
||||||
|
@ -3,7 +3,10 @@ features:
|
|||||||
- |
|
- |
|
||||||
Adds an ``os_distribution`` variable in ``etc/kayobe/globals.yml``, with a
|
Adds an ``os_distribution`` variable in ``etc/kayobe/globals.yml``, with a
|
||||||
default value of ``centos``. The variable can also be set to ``ubuntu``,
|
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:
|
upgrade:
|
||||||
- |
|
- |
|
||||||
Modifies the default value of ``controller_bootstrap_user``,
|
Modifies the default value of ``controller_bootstrap_user``,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user