-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
44 lines (36 loc) · 1.02 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Import VRealize provider
terraform {
required_providers {
vra = {
source = "vmware/vra"
}
}
required_version = ">= 0.13"
}
# Add new Deployment
resource "vra_deployment" "deployment" {
for_each = var.deployment_spec
name = each.value["deployment_name"]
description = each.value["description"]
catalog_item_id = each.value["catalog_item_id"]
catalog_item_version = each.value["catalog_item_version"]
project_id = each.value["project_id"]
inputs = {
MachineName = each.value["deployment_name"]
backup = each.value["backup"]
description = each.value["description"]
password = each.value["vm_password"]
rede = each.value["environment"]
tamanho = each.value["flavor"]
username = each.value["vm_username"]
domain_vm = each.value["vm_domain"]
users = each.value["vm_username"]
count_disk = eacho_value["count_disks"]
size_disk2 = eacho_value["size_disk2"]
}
timeouts {
create = "30m"
delete = "30m"
update = "30m"
}
}