locals {
vm = yamldecode(file("/runner/project/variables/vm_data.yaml"))
}
variable "vsphere_insecure" {
type = bool
default = true
}
#credentials
variable "vsphere_username" {
type = string
sensitive = true
}
variable "vsphere_password" {
type = string
sensitive = true
}
variable "domain_admin_username" {
type = string
sensitive = true
}
variable "domain_admin_password" {
type = string
sensitive = true
}
variable "vm_admin_password" {
type = string
sensitive = true
}
variable "template_name" {
type = string
default = "z_Templates/{{vsphere_template}}"
}
variable "vsphere_network" {
type = string
default = "{{ansible_facts[vDS]}}/{{ansible_facts[vPG Name]}}"
}
variable "vm_ipv4_address" {
type = string
default = {{ ansible_facts['vm_ipv4_address'] }}
}
variable "vm_ipv4_netmask" {
type = string
default = {{ ansible_facts['vm_ipv4_netmask'] }}
}
variable "vm_ipv4_gateway" {
type = string
default = {{ ansible_facts['vm_ipv4_gateway'] }}
}