Creating esxi_datastore variable
This commit is contained in:
@@ -16,7 +16,7 @@ provider "esxi" {
|
||||
#########################################
|
||||
resource "esxi_guest" "logger" {
|
||||
guest_name = "logger"
|
||||
disk_store = "datastore1"
|
||||
disk_store = var.esxi_datastore
|
||||
guestos = "ubuntu-64"
|
||||
|
||||
boot_disk_type = "thin"
|
||||
|
||||
@@ -18,6 +18,10 @@ variable "esxi_username" {
|
||||
variable "esxi_password" { # Unspecified will prompt
|
||||
}
|
||||
|
||||
variable "esxi_datastore" {
|
||||
default = "datastore1"
|
||||
}
|
||||
|
||||
variable "vm_network" {
|
||||
default = "VM Network"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user