Skip to content

Commit f5ba2db

Browse files
committed
make image names more similar to pre-PR configuration
1 parent 8fe4e06 commit f5ba2db

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/fatimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
. environments/${{ matrix.cloud }}/activate
5656
cd packer/
5757
packer init
58-
PACKER_LOG=1 packer build -only openstack.fatimage -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
58+
PACKER_LOG=1 packer build -only openstack.openhpc -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
5959
6060
- name: Get created image name from manifest
6161
id: manifest
File renamed without changes.

packer/openstack.pkr.hcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ source "openstack" "openhpc" {
9494
ssh_bastion_username = "${var.ssh_bastion_username}"
9595
ssh_bastion_private_key_file = "${var.ssh_bastion_private_key_file}"
9696
security_groups = "${var.security_groups}"
97-
image_name = "ohpc-${source.name}-${local.timestamp}-${substr(local.git_commit, 0, 8)}" # " # also provides a unique legal instance hostname (in case of parallel packer builds)
9897
image_visibility = "${var.image_visibility}"
9998
}
10099

@@ -103,6 +102,7 @@ build {
103102
source "source.openstack.openhpc" {
104103
name = "compute"
105104
source_image_name = "${var.source_image_name}" # NB: must already exist in OpenStack
105+
image_name = "ohpc-${source.name}-${local.timestamp}-${substr(local.git_commit, 0, 8)}.qcow2" # also provides a unique legal instance hostname (in case of parallel packer builds)
106106
}
107107

108108
provisioner "ansible" {
@@ -120,10 +120,11 @@ build {
120120
}
121121
}
122122

123+
# The "fat" image build with all binaries:
123124
build {
124125
source "source.openstack.openhpc" {
125-
name = "fatimage"
126126
source_image_name = "${var.fatimage_source_image_name}" # NB: must already exist in OpenStack
127+
image_name = "${source.name}-${local.timestamp}-${substr(local.git_commit, 0, 8)}.qcow2" # similar to name from slurm_image_builder
127128
}
128129

129130
provisioner "ansible" {

0 commit comments

Comments
 (0)