Skip to content

Instantly share code, notes, and snippets.

@emilgaripov
Last active January 30, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilgaripov/f53193dfb7e4e5b51df670417cd5df57 to your computer and use it in GitHub Desktop.
Save emilgaripov/f53193dfb7e4e5b51df670417cd5df57 to your computer and use it in GitHub Desktop.
data "vsphere_datacenter" "dc" {
name = "${var.vsphere_datacenter}"
}
data "vsphere_datastore" "datastore" {
name = "${var.vsphere_datastore}"
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_resource_pool" "pool" {
name = "${var.vsphere_resource_pool}"
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_network" "network" {
name = "${var.vsphere_network}"
datacenter_id = data.vsphere_datacenter.dc.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment