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: docs/image-build.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,20 +51,21 @@ Ansible in the appliance. This allows adding additional functionality into site-
51
51
52
52
To configure an "extra" image build, prepare a Packer variable definition file as described above but also including:
53
53
54
-
- `extra_image_name`: A string to add into the final image name.
55
-
- `source_image` (or `source_image_name`): The UUID or name of the fat image to start from (which must already be present in OpenStack).
56
-
- `groups`: A mapping with a key "openhpc-extra" (i.e. the name of this Packer build) with a list of Ansible inventory groups to put the build VM into.
57
-
This defines the roles/functionality which are added to the image.
54
+
- `extra_build_image_name`: A string to add into the final image name.
55
+
- `source_image` or `source_image_name`: The UUID or name of the fat image to start from (which must already be present in OpenStack).
56
+
- `extra_build_groups`: A list of Ansible inventory groups to put the build VM into, in addition to the `builder` group. This defines the roles/functionality
57
+
which are added to the image.
58
+
- `extra_build_volume_size`: A number giving the size in GB of the volume for the build VM's root disk and therefore the resulting image size.
59
+
Note this assumes the default of `use_blockstorage_volume = true`.
58
60
59
61
E.g. to add the lustre client to an RockyLinux 9 image:
60
62
61
63
# environments/site/lustre.pkvars.hcl
62
64
63
-
extra_image_name = "lustre" # output image name will be like "openhpc-lustre-RL9-$timestamp-$commit"
65
+
extra_build_image_name = "lustre" # output image name will be like "openhpc-lustre-RL9-$timestamp-$commit"
64
66
source_image_name = "openhpc-ofed-RL9-240906-1041-32568dbb" # e.g. current StackHPC RL9 image
65
-
groups = {
66
-
openhpc-extra = ["lustre"] # only run lustre role during this extra build
67
-
}
67
+
extra_build_groups = ["lustre"] # only run lustre role during this extra build
68
+
extra_build_volume_size = 15 # default non-CUDA build image size has enough free space
0 commit comments