diff --git a/packer/openstack.pkr.hcl b/packer/openstack.pkr.hcl index baf73660f..3f93d50a8 100644 --- a/packer/openstack.pkr.hcl +++ b/packer/openstack.pkr.hcl @@ -102,6 +102,12 @@ variable "floating_ip_network" { default = null } +variable "floating_ip" { + type = string + description = "ID of pre-existing FIP to attach. Note floating_ip_network is not required when using this" + default = null +} + variable "manifest_output_path" { type = string default = "packer-manifest.json" @@ -162,6 +168,7 @@ source "openstack" "openhpc" { } networks = var.networks floating_ip_network = var.floating_ip_network + floating_ip = var.floating_ip security_groups = var.security_groups # Input image: