Skip to content

Commit 52a9b97

Browse files
authored
Allow using a specific FIP for a build VM (#734)
* allow setting specific FIP for build VM * make packer FIP vars clearer than packer docs
1 parent bd878f0 commit 52a9b97

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packer/openstack.pkr.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ variable "floating_ip_network" {
102102
default = null
103103
}
104104

105+
variable "floating_ip" {
106+
type = string
107+
description = "ID of pre-existing FIP to attach. Note floating_ip_network is not required when using this"
108+
default = null
109+
}
110+
105111
variable "manifest_output_path" {
106112
type = string
107113
default = "packer-manifest.json"
@@ -162,6 +168,7 @@ source "openstack" "openhpc" {
162168
}
163169
networks = var.networks
164170
floating_ip_network = var.floating_ip_network
171+
floating_ip = var.floating_ip
165172
security_groups = var.security_groups
166173

167174
# Input image:

0 commit comments

Comments
 (0)