cosmetics

This commit is contained in:
Laurent Gourvenec 2024-01-24 16:23:20 +01:00
parent 492dbfa3af
commit e5420fb516
4 changed files with 11 additions and 11 deletions

View File

@ -51,4 +51,4 @@ output "vms" {
} if resource.type == "Cloud.vSphere.Machine"
}
])
}
}

View File

@ -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

View File

@ -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)
}))
}
}

View File

@ -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
tofu ${ARG1} -no-color