Skip to content
variables.tf 3.46 KiB
Newer Older
Michael Kennedy's avatar
Michael Kennedy committed
#===========================#
# VMware vCenter connection #
#===========================#

variable "vsphere_user" {
  type        = string
  description = "VMware vSphere user name"
  sensitive   = true
}

variable "vsphere_password" {
  type        = string
  description = "VMware vSphere password"
  sensitive   = true
}

variable "vsphere_vcenter" {
  type        = string
  description = "VMWare vCenter server FQDN / IP"
  sensitive   = true
}

variable "vsphere-unverified-ssl" {
  type        = string
  description = "Is the VMware vCenter using a self signed certificate (true/false)"
}

variable "vsphere-datacenter" {
  type        = string
  description = "VMWare vSphere datacenter"
}

variable "vsphere-cluster" {
  type        = string
  description = "VMWare vSphere cluster"
  default     = ""
}

variable "vsphere-template-folder" {
  type        = string
  description = "Template folder"
  default     = "Templates"
}

#================================#
# VMware vSphere virtual machine #
#================================#

variable "vm-name-prefix" {
  type        = string
  description = "Name of VM prefix"
  default     = "k3sup"
}

variable "vm-datastore" {
  type        = string
  description = "Datastore used for the vSphere virtual machines"
}

variable "vm-network" {
  type        = string
  description = "Network used for the vSphere virtual machines"
}

variable "vm-linked-clone" {
  type        = string
  description = "Use linked clone to create the vSphere virtual machine from the template (true/false). If you would like to use the linked clone feature, your template need to have one and only one snapshot"
  default     = "false"
}

variable "master_cpu" {
  description = "Number of vCPU for the vSphere virtual machines"
  default     = 2
}

variable "worker_cpu" {
  description = "Number of vCPU for the vSphere virtual machines"
  default     = 2
}

variable "master_cores-per-socket" {
  description = "Number of cores per cpu for workers"
  default     = 1
}

variable "worker_cores-per-socket" {
  description = "Number of cores per cpu for workers"
  default     = 1
}

variable "master_ram" {
  description = "Amount of RAM for the vSphere virtual machines (example: 2048)"
}

variable "worker_ram" {
  description = "Amount of RAM for the vSphere virtual machines (example: 2048)"
}

variable "master_disksize" {
  description = "Disk size in GB"
}

variable "worker_disksize" {
  description = "Disk size in GB"
}

variable "vm-guest-id" {
  type        = string
  description = "The ID of virtual machines operating system"
}

variable "vm-template-name" {
  type        = string
  description = "The template to clone to create the VM"
}

variable "vm-domain" {
  type        = string
  description = "Linux virtual machine domain name for the machine. This, along with host_name, make up the FQDN of the virtual machine"
  default     = ""
}

variable "dns_server_list" {
  type        = list(string)
  description = "List of DNS servers"
  default     = ["8.8.8.8", "8.8.4.4"]
}

variable "master_nodes" {
  type        = map(string)
  description = "List of master node names and ipv4 addresses for K8s masters"
}

variable "worker_nodes" {
  type        = map(string)
  description = "List of worker node names and ipv4 addresses for K8s workers"
}

variable "ipv4_gateway" {
  type = string
}

variable "ipv4_netmask" {
  type = string
}

variable "ssh_username" {
  type      = string
  sensitive = true
}

variable "ssh_password" {
  type      = string
  sensitive = true
}