From 40c7bf10cc427c21ace7ab3ec7660f596d183ee3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Mon, 22 Mar 2021 22:15:19 +0100
Subject: [PATCH] Bioportal: access OpenStack using token

---
 deploy.tf    | 4 ++++
 variables.tf | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/deploy.tf b/deploy.tf
index 0bc9a6e..0137bf3 100644
--- a/deploy.tf
+++ b/deploy.tf
@@ -1,4 +1,8 @@
 provider "openstack" {
+	token        = var.token
+	auth_url     = "https://identity.cloud.muni.cz/v3"
+	region       = "brno1"
+	allow_reauth = false
 }
 
 terraform {
diff --git a/variables.tf b/variables.tf
index 2b21b98..b8147e1 100644
--- a/variables.tf
+++ b/variables.tf
@@ -98,6 +98,11 @@ variable "ssh" {
 	default = "openstack"
 }
 
+variable "token" {
+	description = "OpenStack token"
+	default = null
+}
+
 variable "volumes" {
 	description = "Number of data volumes per node (zero means system disk)"
 	default = 2
-- 
GitLab