-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
41 lines (34 loc) · 1.19 KB
/
data.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
# ╭─────────────────────────────────╮
# │ ╺┳┓┏━┓╺┳╸┏━┓ │
# │ ┃┃┣━┫ ┃ ┣━┫ │
# │ ╺┻┛╹ ╹ ╹ ╹ ╹ │
# ╰─────────────────────────────────╯
data "vsphere_datacenter" "dc" {
name = var.vs_datacenter_name
}
data "vsphere_compute_cluster" "cc" {
name = var.vs_cluster_name
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_resource_pool" "rp" {
name = var.vs_resource_pool
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_host" "vs_esx_host" {
name = var.vs_esx_host
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_datastore" "sas" {
name = var.vs_ds_default
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_datastore" "ssd" {
name = var.vs_ds_ssd
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_folder" "vm_folder" {
path = resource.vsphere_folder.vm_folder.path
depends_on = [
resource.vsphere_folder.vm_folder
]
}