Skip to content

Commit af30b3c

Browse files
authored
Merge pull request #267 from stackhpc/feat/fatimage-fip
Attach a FIP to the fatimage builder instance
2 parents aca4f0a + 16623d5 commit af30b3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packer/openstack.pkr.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ variable "ssh_bastion_private_key_file" {
9696
default = "~/.ssh/id_rsa"
9797
}
9898

99+
variable "floating_ip_network" {
100+
type = string
101+
default = null
102+
}
103+
99104
source "openstack" "openhpc" {
100105
flavor = "${var.flavor}"
101106
networks = "${var.networks}"
@@ -137,6 +142,7 @@ build {
137142
# The "fat" image build with all binaries:
138143
build {
139144
source "source.openstack.openhpc" {
145+
floating_ip_network = "${var.floating_ip_network}"
140146
source_image = "${var.fatimage_source_image}"
141147
source_image_name = "${var.fatimage_source_image_name}" # NB: must already exist in OpenStack
142148
image_name = "${source.name}-${local.timestamp}-${substr(local.git_commit, 0, 8)}.qcow2" # similar to name from slurm_image_builder

0 commit comments

Comments
 (0)