From 2bd36bb9a1ad592dd27cf6579e501e55cccc684f Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Thu, 23 May 2024 13:40:02 +0200 Subject: [PATCH] Prepare providon of multiple environments from same IaC. --- IaC/main.tf | 2 +- IaC/vars.tf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/IaC/main.tf b/IaC/main.tf index b5d2a4e..66db5b1 100644 --- a/IaC/main.tf +++ b/IaC/main.tf @@ -11,5 +11,5 @@ required_version = ">= 0.14.0" # Configure the OpenStack Provider provider "openstack" { - cloud = "dco-matrixtest" + cloud = "${var.cloud_name}" } diff --git a/IaC/vars.tf b/IaC/vars.tf index a589d99..bc5f172 100644 --- a/IaC/vars.tf +++ b/IaC/vars.tf @@ -34,3 +34,7 @@ variable "controller_name" { variable "dns_suffix" { default = "matrix.test.sunet.se" } + +variable "cloud_name" { + default="dco-matrixtest" +}