forked from vmware/terraform-provider-vcfa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path02-sddc.tf
More file actions
25 lines (23 loc) · 1.04 KB
/
02-sddc.tf
File metadata and controls
25 lines (23 loc) · 1.04 KB
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
# Configure underlying vCenter and NSX
# https://registry.terraform.io/providers/vmware/vcfa/latest/docs/resources/nsx_manager
resource "vcfa_nsx_manager" "example" {
name = "tf-example-nsx-manager"
description = "Created by Terraform VCFA Provider"
username = var.nsx_manager_username
password = var.nsx_manager_password
url = var.nsx_manager_url
auto_trust_certificate = true
}
# https://registry.terraform.io/providers/vmware/vcfa/latest/docs/resources/vcenter
resource "vcfa_vcenter" "example" {
nsx_manager_id = vcfa_nsx_manager.example.id
name = "tf-example-vcenter"
description = "Created by Terraform VCFA Provider"
url = var.vcenter_url
auto_trust_certificate = true
refresh_vcenter_on_create = true
refresh_policies_on_create = true
username = var.vcenter_username
password = var.vcenter_password
is_enabled = true
}