add the option to add tags at deployement

I made this things a vars

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
Nicolas Boufidjeline 2022-07-01 18:48:48 +02:00
parent 8971469873
commit 268a346a19
No known key found for this signature in database
GPG Key ID: 8DC009DF411D3BE1
2 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,8 @@ resource "xenorchestra_vm" "vm_deployed" {
size = var.disk_size * 1024 * 1024 * 1024 size = var.disk_size * 1024 * 1024 * 1024
} }
tags = var.vm_tags
// Override the default create timeout from 5 mins to 20. // Override the default create timeout from 5 mins to 20.
timeouts { timeouts {
create = "20m" create = "20m"

4
var.tf
View File

@ -93,3 +93,7 @@ variable "disk_size" {
variable "ssh_keys" { variable "ssh_keys" {
type = string type = string
} }
variable "vm_tags" {
type = list
}