Skip to content

Commit 31ad1be

Browse files
committed
README update for CPU Arch
1 parent 3b11112 commit 31ad1be

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ This collection includes content for interacting with OpenStack clouds.
1616
- os_openstacksdk
1717
- os_projects
1818
- os_ratings
19-
- os_volumes
19+
- os_volumes

roles/os_images/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,33 @@ will be replaced with the newly built image if `os_images_upload` is set to `Tru
118118

119119
`os_images_hide`: Whether or not to hide the images in Glance list. Hiding images is available as an option in image retirement/promotion process. Defaults to `False`.
120120

121+
Changing platform architecture in os_images
122+
-------------------------------------------
123+
124+
The `Generate diskimage-builder images` job in the ``os_images`` role can build an
125+
image for a chosen CPU architecture by defining the ``cpu_arch`` image property before
126+
calling the ``os_images`` role. This is an [example](https://github.com/stackhpc/kayobe/blob/18ca11b47af42ce10507516c2f9e34f447d5e39a/ansible/overcloud-host-image-build.yml#L21_)
127+
of a playbook calling the ``os_image`` role & below is an example of how to set the
128+
``cpu_arch`` image property in a configuration like StackHPC-Kayobe-Config:
129+
130+
```yaml
131+
stackhpc_overcloud_dib_host_image:
132+
name: "{{ image_name }}"
133+
elements: "{{ dib_elements }}"
134+
env: "{{ dib_env_vars }}"
135+
packages: "{{ dib_packages }}"
136+
properties:
137+
- cpu_arch: "arm64"
138+
```
139+
140+
The ``cpu_arch`` variable will also be set as an image property within the `Upload
141+
cloud tenant images` task in the ``upload.yml`` task.
142+
143+
If left unset the ``cpu_arch`` variable will default to `x86_64` for ``upload.yml``.
144+
However, if not set, the `Generate diskimage-builder images` job will takes the
145+
disk image builder's default.
146+
147+
121148
Dependencies
122149
------------
123150

0 commit comments

Comments
 (0)