Skip to content
Snippets Groups Projects
Commit 0f78fcda authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Use new collections in Kayobe"

parents 9765b648 dbcc3f4a
No related branches found
No related tags found
No related merge requests found
Showing
with 55 additions and 50 deletions
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
vars: vars:
venv: "{{ virtualenv_path }}/openstacksdk" venv: "{{ virtualenv_path }}/openstacksdk"
roles: roles:
- role: stackhpc.os_openstacksdk - role: stackhpc.openstack.os_openstacksdk
os_openstacksdk_venv: "{{ venv }}" os_openstacksdk_venv: "{{ venv }}"
os_openstacksdk_install_epel: "{{ dnf_install_epel }}" os_openstacksdk_install_epel: "{{ dnf_install_epel }}"
os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}" os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
vars: vars:
venv: "{{ virtualenv_path }}/openstacksdk" venv: "{{ virtualenv_path }}/openstacksdk"
roles: roles:
- role: stackhpc.os_openstacksdk - role: stackhpc.openstack.os_openstacksdk
os_openstacksdk_venv: "{{ venv }}" os_openstacksdk_venv: "{{ venv }}"
os_openstacksdk_install_epel: "{{ dnf_install_epel }}" os_openstacksdk_install_epel: "{{ dnf_install_epel }}"
os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}" os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
vars: vars:
venv: "{{ virtualenv_path }}/openstacksdk" venv: "{{ virtualenv_path }}/openstacksdk"
roles: roles:
- role: stackhpc.os_openstacksdk - role: stackhpc.openstack.os_openstacksdk
os_openstacksdk_venv: "{{ venv }}" os_openstacksdk_venv: "{{ venv }}"
os_openstacksdk_install_epel: "{{ dnf_install_epel }}" os_openstacksdk_install_epel: "{{ dnf_install_epel }}"
os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}" os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Only required to run on a single host. # Only required to run on a single host.
hosts: controllers[0] hosts: controllers[0]
roles: roles:
- role: stackhpc.os-networks - role: stackhpc.openstack.os_networks
os_openstacksdk_install_epel: "{{ dnf_install_epel }}" os_openstacksdk_install_epel: "{{ dnf_install_epel }}"
os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}" os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}"
os_networks_venv: "{{ virtualenv_path }}/openstacksdk" os_networks_venv: "{{ virtualenv_path }}/openstacksdk"
......
...@@ -62,7 +62,8 @@ ipa_build_dib_env: > ...@@ -62,7 +62,8 @@ ipa_build_dib_env: >
combine(ipa_build_dib_env_extra) }} combine(ipa_build_dib_env_extra) }}
# List of default git repositories containing Diskimage Builder (DIB) elements. # List of default git repositories containing Diskimage Builder (DIB) elements.
# See stackhpc.os-images role for usage. Default is one item for IPA builder. # See stackhpc.openstack.os_images role for usage.
# Default is one item for IPA builder.
ipa_build_dib_git_elements_default: ipa_build_dib_git_elements_default:
- repo: "{{ ipa_builder_source_url }}" - repo: "{{ ipa_builder_source_url }}"
local: "{{ source_checkout_path }}/ironic-python-agent-builder" local: "{{ source_checkout_path }}/ironic-python-agent-builder"
...@@ -70,11 +71,11 @@ ipa_build_dib_git_elements_default: ...@@ -70,11 +71,11 @@ ipa_build_dib_git_elements_default:
elements_path: "dib" elements_path: "dib"
# List of additional git repositories containing Diskimage Builder (DIB) # List of additional git repositories containing Diskimage Builder (DIB)
# elements. See stackhpc.os-images role for usage. Default is empty. # elements. See stackhpc.openstack.os_images role for usage. Default is empty.
ipa_build_dib_git_elements_extra: [] ipa_build_dib_git_elements_extra: []
# List of git repositories containing Diskimage Builder (DIB) elements. See # List of git repositories containing Diskimage Builder (DIB) elements. See
# stackhpc.os-images role for usage. Default is a combination of # stackhpc.openstack.os_images role for usage. Default is a combination of
# ipa_build_dib_git_elements_default and ipa_build_dib_git_elements_extra. # ipa_build_dib_git_elements_default and ipa_build_dib_git_elements_extra.
ipa_build_dib_git_elements: >- ipa_build_dib_git_elements: >-
{{ ipa_build_dib_git_elements_default + ipa_build_dib_git_elements_extra }} {{ ipa_build_dib_git_elements_default + ipa_build_dib_git_elements_extra }}
......
...@@ -14,9 +14,10 @@ overcloud_dib_build_host_images: true ...@@ -14,9 +14,10 @@ overcloud_dib_build_host_images: true
overcloud_dib_host_packages_extra: [] overcloud_dib_host_packages_extra: []
# List of overcloud host disk images to build. Each element is a dict defining # List of overcloud host disk images to build. Each element is a dict defining
# an image in a format accepted by the stackhpc.os-images role. Default is to # an image in a format accepted by the stackhpc.openstack.os_images role.
# build an image named "deployment_image" configured with the overcloud_dib_* # Default is to build an image named "deployment_image"
# variables defined below: {"name": "deployment_image", "elements": "{{ # configured with the overcloud_dib_* variables defined below:
# {"name": "deployment_image", "elements": "{{
# overcloud_dib_elements }}", "env": "{{ overcloud_dib_env_vars }}", # overcloud_dib_elements }}", "env": "{{ overcloud_dib_env_vars }}",
# "packages": "{{ overcloud_dib_packages }}"}. # "packages": "{{ overcloud_dib_packages }}"}.
overcloud_dib_host_images: overcloud_dib_host_images:
...@@ -70,15 +71,15 @@ overcloud_dib_env_vars: "{{ overcloud_dib_env_vars_default | combine(overcloud_d ...@@ -70,15 +71,15 @@ overcloud_dib_env_vars: "{{ overcloud_dib_env_vars_default | combine(overcloud_d
overcloud_dib_packages: [] overcloud_dib_packages: []
# List of default git repositories containing Diskimage Builder (DIB) elements. # List of default git repositories containing Diskimage Builder (DIB) elements.
# See stackhpc.os-images role for usage. Default is empty. # See stackhpc.openstack.os_images role for usage. Default is empty.
overcloud_dib_git_elements_default: [] overcloud_dib_git_elements_default: []
# List of additional git repositories containing Diskimage Builder (DIB) # List of additional git repositories containing Diskimage Builder (DIB)
# elements. See stackhpc.os-images role for usage. Default is empty. # elements. See stackhpc.openstack.os_images role for usage. Default is empty.
overcloud_dib_git_elements_extra: [] overcloud_dib_git_elements_extra: []
# List of git repositories containing Diskimage Builder (DIB) elements. See # List of git repositories containing Diskimage Builder (DIB) elements. See
# stackhpc.os-images role for usage. Default is a combination of # stackhpc.openstack.os_images role for usage. Default is a combination of
# overcloud_dib_git_elements_default and overcloud_dib_git_elements_extra. # overcloud_dib_git_elements_default and overcloud_dib_git_elements_extra.
overcloud_dib_git_elements: >- overcloud_dib_git_elements: >-
{{ overcloud_dib_git_elements_default + overcloud_dib_git_elements_extra }} {{ overcloud_dib_git_elements_default + overcloud_dib_git_elements_extra }}
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Authentication configuration. # Authentication configuration.
# For DellOS switches, this defines a 'provider' argument to the # For DellOS switches, this defines a 'provider' argument to the
# dell_powerconnect_switch role. # stackhpc.network.dell_powerconnect_switch role.
switch_dell_powerconnect_provider: switch_dell_powerconnect_provider:
host: "{{ ansible_host|default(inventory_hostname) }}" host: "{{ ansible_host|default(inventory_hostname) }}"
username: "{{ ansible_user }}" username: "{{ ansible_user }}"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Authentication configuration. # Authentication configuration.
# For Mellanox switches, this defines a 'provider' argument to the # For Mellanox switches, this defines a 'provider' argument to the
# mellanox-switch role. # stackhpc.network.mellanox_switch role.
switch_mellanox_provider: switch_mellanox_provider:
host: "{{ ansible_host|default(inventory_hostname) }}" host: "{{ ansible_host|default(inventory_hostname) }}"
username: "{{ ansible_user }}" username: "{{ ansible_user }}"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
- name: Ensure overcloud host disk images are built - name: Ensure overcloud host disk images are built
include_role: include_role:
name: stackhpc.os-images name: stackhpc.openstack.os_images
vars: vars:
os_images_package_dependencies_extra: "{{ overcloud_dib_host_packages_extra | select | list }}" os_images_package_dependencies_extra: "{{ overcloud_dib_host_packages_extra | select | list }}"
os_images_venv: "{{ virtualenv_path }}/overcloud-host-image-dib" os_images_venv: "{{ virtualenv_path }}/overcloud-host-image-dib"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
- name: Ensure the openstack client is installed - name: Ensure the openstack client is installed
include_role: include_role:
name: stackhpc.os-openstackclient name: stackhpc.openstack.os_openstackclient
vars: vars:
os_openstackclient_venv: "{{ venv }}" os_openstackclient_venv: "{{ venv }}"
os_openstackclient_install_epel: "{{ dnf_install_epel }}" os_openstackclient_install_epel: "{{ dnf_install_epel }}"
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
- block: - block:
- name: Ensure Ironic Python Agent images are built - name: Ensure Ironic Python Agent images are built
include_role: include_role:
name: stackhpc.os-images name: stackhpc.openstack.os_images
vars: vars:
os_images_package_dependencies_extra: "{{ ipa_build_dib_host_packages_extra | select | list }}" os_images_package_dependencies_extra: "{{ ipa_build_dib_host_packages_extra | select | list }}"
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib" os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
roles: roles:
- role: ssh-known-host - role: ssh-known-host
- role: stackhpc.dell-powerconnect-switch - role: stackhpc.network.dell_powerconnect_switch
dell_powerconnect_switch_type: "{{ switch_type }}" dell_powerconnect_switch_type: "{{ switch_type }}"
dell_powerconnect_switch_provider: "{{ switch_dell_powerconnect_provider }}" dell_powerconnect_switch_provider: "{{ switch_dell_powerconnect_provider }}"
dell_powerconnect_switch_config: "{{ switch_config }}" dell_powerconnect_switch_config: "{{ switch_config }}"
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
roles: roles:
- role: ssh-known-host - role: ssh-known-host
- role: stackhpc.mellanox-switch - role: stackhpc.network.mellanox_switch
mellanox_switch_type: "{{ switch_type }}" mellanox_switch_type: "{{ switch_type }}"
mellanox_switch_provider: "{{ switch_mellanox_provider }}" mellanox_switch_provider: "{{ switch_mellanox_provider }}"
mellanox_switch_config: "{{ switch_config }}" mellanox_switch_config: "{{ switch_config }}"
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
- config-validation - config-validation
- import_role: - import_role:
name: stackhpc.os-networks name: stackhpc.openstack.os_networks
vars: vars:
os_openstacksdk_install_epel: "{{ dnf_install_epel }}" os_openstacksdk_install_epel: "{{ dnf_install_epel }}"
os_openstacksdk_state: "latest" os_openstacksdk_state: "latest"
......
--- ---
dependencies: dependencies:
- role: stackhpc.os_openstacksdk - role: stackhpc.openstack.os_openstacksdk
os_openstacksdk_venv: "{{ ipa_images_venv }}" os_openstacksdk_venv: "{{ ipa_images_venv }}"
os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}" os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}"
- role: stackhpc.os-openstackclient - role: stackhpc.openstack.os_openstackclient
os_openstackclient_venv: "{{ ipa_images_venv }}" os_openstackclient_venv: "{{ ipa_images_venv }}"
os_openstackclient_upper_constraints_file: "{{ ipa_images_upper_constraints_file }}" os_openstackclient_upper_constraints_file: "{{ ipa_images_upper_constraints_file }}"
--- ---
dependencies: dependencies:
- role: stackhpc.os_openstacksdk - role: stackhpc.openstack.os_openstacksdk
os_openstacksdk_venv: "{{ ironic_inspector_venv }}" os_openstacksdk_venv: "{{ ironic_inspector_venv }}"
os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}" os_openstacksdk_upper_constraints_file: "{{ openstacksdk_upper_constraints_file }}"
\ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
- name: Configure systemd-networkd - name: Configure systemd-networkd
import_role: import_role:
name: stackhpc.systemd_networkd name: stackhpc.linux.systemd_networkd
vars: vars:
systemd_networkd_link: "{{ network_interfaces | networkd_links }}" systemd_networkd_link: "{{ network_interfaces | networkd_links }}"
systemd_networkd_netdev: "{{ network_interfaces | networkd_netdevs }}" systemd_networkd_netdev: "{{ network_interfaces | networkd_netdevs }}"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
- block: - block:
- name: Ensure Ironic Python Agent images are built - name: Ensure Ironic Python Agent images are built
include_role: include_role:
name: stackhpc.os-images name: stackhpc.openstack.os_images
vars: vars:
os_images_package_dependencies_extra: "{{ ipa_build_dib_host_packages_extra | select | list }}" os_images_package_dependencies_extra: "{{ ipa_build_dib_host_packages_extra | select | list }}"
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib" os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
......
...@@ -80,18 +80,18 @@ image build``. ...@@ -80,18 +80,18 @@ image build``.
``ipa_build_dib_env_default`` and ``ipa_build_dib_env_extra``. ``ipa_build_dib_env_default`` and ``ipa_build_dib_env_extra``.
``ipa_build_dib_git_elements_default`` ``ipa_build_dib_git_elements_default``
List of default git repositories containing Diskimage Builder (DIB) List of default git repositories containing Diskimage Builder (DIB)
elements. See `stackhpc.os-images elements. See `stackhpc.openstack.os_images
<https://galaxy.ansible.com/stackhpc/os-images>`__ role for usage. Default <https://galaxy.ansible.com/ui/repo/published/stackhpc/openstack/content/role/os_images/>`__
is one item for IPA builder. role for usage. Default is one item for IPA builder.
``ipa_build_dib_git_elements_extra`` ``ipa_build_dib_git_elements_extra``
List of additional git repositories containing Diskimage Builder (DIB) List of additional git repositories containing Diskimage Builder (DIB)
elements. See `stackhpc.os-images elements. See `stackhpc.openstack.os_images
<https://galaxy.ansible.com/stackhpc/os-images>`__ role for usage. Default <https://galaxy.ansible.com/ui/repo/published/stackhpc/openstack/content/role/os_images/>`__
is none. role for usage. Default is none.
``ipa_build_dib_git_elements`` ``ipa_build_dib_git_elements``
List of git repositories containing Diskimage Builder (DIB) elements. See List of git repositories containing Diskimage Builder (DIB) elements. See
`stackhpc.os-images <https://galaxy.ansible.com/stackhpc/os-images>`__ role `stackhpc.openstack.os_images <https://galaxy.ansible.com/ui/repo/published/stackhpc/openstack/content/role/os_images/>`__
for usage. Default is combination of ``ipa_build_dib_git_elements_default`` role for usage. Default is combination of ``ipa_build_dib_git_elements_default``
and ``ipa_build_dib_git_elements_extra``. and ``ipa_build_dib_git_elements_extra``.
``ipa_build_dib_packages`` ``ipa_build_dib_packages``
List of DIB packages to install. Default is none. List of DIB packages to install. Default is none.
......
...@@ -44,11 +44,11 @@ the configuration drive built by Bifrost during provisioning. ...@@ -44,11 +44,11 @@ the configuration drive built by Bifrost during provisioning.
List of additional host packages to install. Default is an empty list. List of additional host packages to install. Default is an empty list.
``overcloud_dib_host_images`` ``overcloud_dib_host_images``
List of overcloud host disk images to build. Each element is a dict List of overcloud host disk images to build. Each element is a dict
defining an image in a format accepted by the `stackhpc.os-images defining an image in a format accepted by the `stackhpc.openstack.os_images
<https://galaxy.ansible.com/stackhpc/os-images>`__ role. Default is to <https://galaxy.ansible.com/ui/repo/published/stackhpc/openstack/content/role/os_images/>`__
build an image named ``deployment_image`` configured with the role. Default is to build an image named ``deployment_image`` configured
``overcloud_dib_*`` variables defined below: ``{"name": "deployment_image", with the ``overcloud_dib_*`` variables defined below: ``{"name":
"elements": "{{ overcloud_dib_elements }}", "env": "{{ "deployment_image", "elements": "{{ overcloud_dib_elements }}", "env": "{{
overcloud_dib_env_vars }}", "packages": "{{ overcloud_dib_packages }}"}``. overcloud_dib_env_vars }}", "packages": "{{ overcloud_dib_packages }}"}``.
``overcloud_dib_os_element`` ``overcloud_dib_os_element``
DIB base OS element. Default is ``{{ 'rocky-container' if os_distribution == 'rocky' else os_distribution }}``. DIB base OS element. Default is ``{{ 'rocky-container' if os_distribution == 'rocky' else os_distribution }}``.
...@@ -80,13 +80,15 @@ the configuration drive built by Bifrost during provisioning. ...@@ -80,13 +80,15 @@ the configuration drive built by Bifrost during provisioning.
List of DIB packages to install. Default is to install no extra packages. List of DIB packages to install. Default is to install no extra packages.
``overcloud_dib_git_elements_default`` ``overcloud_dib_git_elements_default``
List of default git repositories containing Diskimage Builder (DIB) List of default git repositories containing Diskimage Builder (DIB)
elements. See stackhpc.os-images role for usage. Default is empty. elements. See stackhpc.openstack.os_images role for usage.
Default is empty.
``overcloud_dib_git_elements_extra`` ``overcloud_dib_git_elements_extra``
List of additional git repositories containing Diskimage Builder (DIB) List of additional git repositories containing Diskimage Builder (DIB)
elements. See stackhpc.os-images role for usage. Default is empty. elements. See stackhpc.openstack.os_imagesimages role for usage.
Default is empty.
``overcloud_dib_git_elements`` ``overcloud_dib_git_elements``
List of git repositories containing Diskimage Builder (DIB) elements. See List of git repositories containing Diskimage Builder (DIB) elements. See
stackhpc.os-images role for usage. Default is a combination of stackhpc.openstack.os_images role for usage. Default is a combination of
``overcloud_dib_git_elements_default`` and ``overcloud_dib_git_elements_default`` and
``overcloud_dib_git_elements_extra``. ``overcloud_dib_git_elements_extra``.
``overcloud_dib_upper_constraints_file`` ``overcloud_dib_upper_constraints_file``
...@@ -211,10 +213,11 @@ Example: Building multiple images ...@@ -211,10 +213,11 @@ Example: Building multiple images
It can be necessary to build multiple images to support the various types of It can be necessary to build multiple images to support the various types of
hardware present in a deployment or the different functions performed by hardware present in a deployment or the different functions performed by
overcloud hosts. This can be configured with the ``overcloud_dib_host_images`` overcloud hosts. This can be configured with the ``overcloud_dib_host_images``
variable, using a format accepted by the `stackhpc.os-images variable, using a format accepted by the `stackhpc.openstack.os_images
<https://galaxy.ansible.com/stackhpc/os-images>`__ role. Note that image names <https://galaxy.ansible.com/ui/repo/published/stackhpc/openstack/content/role/os_images/>`__
should not include the file extension. For example, to build a second image role. Note that image names should not include the file extension. For example,
with a development user account and the ``biosdevname`` package: to build a second image with a development user account and the ``biosdevname``
package:
.. code-block:: yaml .. code-block:: yaml
:caption: ``dib.yml`` :caption: ``dib.yml``
......
...@@ -250,7 +250,7 @@ Dell PowerConnect ...@@ -250,7 +250,7 @@ Dell PowerConnect
----------------- -----------------
Configuration for these devices is applied using the Configuration for these devices is applied using the
``stackhpc.dell-powerconnect-switch`` Ansible role. The role uses the ``stackhpc.network.dell_powerconnect_switch`` Ansible role. The role uses the
``expect`` Ansible module to automate interaction with the switch CLI via SSH. ``expect`` Ansible module to automate interaction with the switch CLI via SSH.
``switch_type`` should be set to ``dell-powerconnect``. ``switch_type`` should be set to ``dell-powerconnect``.
...@@ -299,8 +299,8 @@ Mellanox MLNX OS ...@@ -299,8 +299,8 @@ Mellanox MLNX OS
---------------- ----------------
Configuration for these devices is applied using the Configuration for these devices is applied using the
``stackhpc.mellanox-switch`` Ansible role. The role uses the ``expect`` ``stackhpc.network.mellanox_switch`` Ansible role. The role uses the
Ansible module to automate interaction with the switch CLI via SSH. ``expect`` Ansible module to automate interaction with the switch CLI via SSH.
``switch_type`` should be set to ``mellanox``. ``switch_type`` should be set to ``mellanox``.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment