Creating esxi_datastore variable

This commit is contained in:
Chris Long
2020-11-17 13:37:16 -08:00
parent e00dada09b
commit 91c5763032
3 changed files with 6 additions and 1 deletions

View File

@@ -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"

View File

@@ -18,6 +18,10 @@ variable "esxi_username" {
variable "esxi_password" { # Unspecified will prompt
}
variable "esxi_datastore" {
default = "datastore1"
}
variable "vm_network" {
default = "VM Network"
}