Files
terraform-templates/cloud-init-vm/vars.tf
2025-05-19 14:09:59 +00:00

83 lines
1.4 KiB
HCL

variable "vm_hostname" {
default = "tofutest1.internal.irva.xyz"
}
variable "proxmox_node_name" {
default = "opatos"
}
variable "image_url" {
default = "https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2"
}
variable "image_file_name" {
default = "AlmaLinux-9.img"
}
variable "cores" {
default = 4
}
# In MiBs
variable "memory" {
default = 4096
}
# In GiBs
variable "disk_size" {
default = 20
}
variable "disk_storage" {
default = "samsung"
}
# Should be CIDR notation (xxx.xxx.xxx.xxx/yy)
variable "ipv4_address" {
default = "192.168.20.7/24"
}
variable "ipv4_gateway" {
default = "192.168.20.1"
}
variable "network_bridge_device" {
default = "vmbr1"
}
# For FreeIPA enrollment
variable "freeipa_enrollment_principal" {
default = "enrollment_admin@INTERNAL.IRVA.XYZ"
}
variable "dns_servers" {
default = ["192.168.20.2"]
}
variable "dns_domain" {
default = "internal.irva.xyz"
}
#Provide the url of the host you would like the API to communicate on.
#It is safe to default to setting this as the URL for what you used
#as your `proxmox_host`, although they can be different
variable "api_url" {
default = "https://192.168.2.224:8006/"
}
# Secrets
variable "proxmox_token_secret" {
}
variable "proxmox_token_id" {
}
variable "freeipa_enrollment_password" {
}
variable "proxmox_ssh_username" {
}
variable "proxmox_ssh_password" {
}