Skip to content
Snippets Groups Projects
Commit 04955b19 authored by František Dvořák's avatar František Dvořák
Browse files

Bioportal: optionally use network ID instead of name

parent 1f009117
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,8 @@ resource "openstack_compute_instance_v2" "server" {
]
user_data = data.template_cloudinit_config.ctx[count.index].rendered
network {
name = var.local_network
name = var.local_network_id == null ? var.local_network : null
uuid = var.local_network_id
}
}
......
......@@ -58,6 +58,11 @@ variable "local_network" {
default = "auto_allocated_network"
}
variable "local_network_id" {
description = "Local network ID (overrides local network)"
default = null
}
variable "public_network" {
description = "Public network name"
default = "public-muni-147-251-124-GROUP"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment