From e5420fb516fa922fa1c43975cadd258524bbb190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Gourv=C3=A9nec?= Date: Wed, 24 Jan 2024 16:23:20 +0100 Subject: [PATCH] cosmetics --- tofu/main.tf | 2 +- tofu/modules/pycloud/main.tf | 2 +- tofu/modules/pycloud/variables.tf | 16 ++++++++-------- tofu/pytofu | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tofu/main.tf b/tofu/main.tf index 1c0d2b9..7200ee1 100644 --- a/tofu/main.tf +++ b/tofu/main.tf @@ -51,4 +51,4 @@ output "vms" { } if resource.type == "Cloud.vSphere.Machine" } ]) -} \ No newline at end of file +} diff --git a/tofu/modules/pycloud/main.tf b/tofu/modules/pycloud/main.tf index 23f998e..65a1543 100644 --- a/tofu/modules/pycloud/main.tf +++ b/tofu/modules/pycloud/main.tf @@ -19,7 +19,7 @@ resource "vra_deployment" "deployments" { } name = each.value.name description = each.value.description - + catalog_item_id = data.vra_catalog_item.catalog[each.value.catalog_item_name].id catalog_item_version = data.vra_catalog_item.catalog[each.value.catalog_item_name].versions.*.id[0] project_id = data.vra_project.projects[each.value.project_name].id diff --git a/tofu/modules/pycloud/variables.tf b/tofu/modules/pycloud/variables.tf index ec33a99..6f54b0f 100644 --- a/tofu/modules/pycloud/variables.tf +++ b/tofu/modules/pycloud/variables.tf @@ -37,13 +37,13 @@ variable "update_timeout" { variable "deployments" { description = "Definition of what the user need to deploy" type = map(object({ - name = string - description = string - enabled = bool - - catalog_item_name = string - project_name = string + name = string + description = string + enabled = bool - inputs = map(string) + catalog_item_name = string + project_name = string + + inputs = map(string) })) -} \ No newline at end of file +} diff --git a/tofu/pytofu b/tofu/pytofu index 7922990..363aafe 100755 --- a/tofu/pytofu +++ b/tofu/pytofu @@ -80,4 +80,4 @@ ARG1=${@:$OPTIND:1} export TF_VAR_vra_url="${service_url}" export TF_VAR_vra_username="${username}" export TF_VAR_vra_refresh_token="${refresh_token}" -tofu ${ARG1} -no-color \ No newline at end of file +tofu ${ARG1} -no-color