From 04955b199af4a94e53e90e03d7387f4e2e312ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Tue, 23 Mar 2021 21:50:42 +0100 Subject: [PATCH] Bioportal: optionally use network ID instead of name --- deploy.tf | 3 ++- variables.tf | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy.tf b/deploy.tf index 0d11672..2f7c8eb 100644 --- a/deploy.tf +++ b/deploy.tf @@ -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 } } diff --git a/variables.tf b/variables.tf index b2800e9..9938e72 100644 --- a/variables.tf +++ b/variables.tf @@ -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" -- GitLab