Creating esxi_datastore variable
This commit is contained in:
@@ -16,7 +16,7 @@ provider "esxi" {
|
|||||||
#########################################
|
#########################################
|
||||||
resource "esxi_guest" "logger" {
|
resource "esxi_guest" "logger" {
|
||||||
guest_name = "logger"
|
guest_name = "logger"
|
||||||
disk_store = "datastore1"
|
disk_store = var.esxi_datastore
|
||||||
guestos = "ubuntu-64"
|
guestos = "ubuntu-64"
|
||||||
|
|
||||||
boot_disk_type = "thin"
|
boot_disk_type = "thin"
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ variable "esxi_username" {
|
|||||||
variable "esxi_password" { # Unspecified will prompt
|
variable "esxi_password" { # Unspecified will prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "esxi_datastore" {
|
||||||
|
default = "datastore1"
|
||||||
|
}
|
||||||
|
|
||||||
variable "vm_network" {
|
variable "vm_network" {
|
||||||
default = "VM Network"
|
default = "VM Network"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
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
|
# Source variables from logger_variables.sh
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source ./logger_variables.sh
|
source ./logger_variables.sh
|
||||||
|
|
||||||
if [ -z "$MAXMIND_LICENSE" ]; then
|
if [ -z "$MAXMIND_LICENSE" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user