You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: roles/os_images/README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,33 @@ will be replaced with the newly built image if `os_images_upload` is set to `Tru
118
118
119
119
`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`.
120
120
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
0 commit comments