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

View File

@@ -10,6 +10,7 @@ fi
sed -i 's/nameserver 127.0.0.53/nameserver 8.8.8.8/g' /etc/resolv.conf && chattr +i /etc/resolv.conf
# Source variables from logger_variables.sh
# shellcheck disable=SC1091
source ./logger_variables.sh
if [ -z "$MAXMIND_LICENSE" ]; then