From 268a346a1947e2adcb8d659b9704d14a07c35bf4 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Fri, 1 Jul 2022 18:48:48 +0200 Subject: [PATCH] add the option to add tags at deployement I made this things a vars Signed-off-by: GnomeZworc --- main.tf | 2 ++ var.tf | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/main.tf b/main.tf index 1d4bb9e..bca776c 100644 --- a/main.tf +++ b/main.tf @@ -58,6 +58,8 @@ resource "xenorchestra_vm" "vm_deployed" { size = var.disk_size * 1024 * 1024 * 1024 } + tags = var.vm_tags + // Override the default create timeout from 5 mins to 20. timeouts { create = "20m" diff --git a/var.tf b/var.tf index 4d4144d..9661ab0 100644 --- a/var.tf +++ b/var.tf @@ -93,3 +93,7 @@ variable "disk_size" { variable "ssh_keys" { type = string } + +variable "vm_tags" { + type = list +}