iac/variables.tf

100 lines
2.6 KiB
Terraform
Raw Normal View History

2024-06-04 09:25:59 +00:00
variable "pve_api_base_url" {
description = "API URL to the Proxmox cluster"
type = string
nullable = false
}
variable "pve_api_token" {
description = "API token used to connect to the Proxmox cluster"
type = string
nullable = false
sensitive = true
}
variable "pve_node_name" {
description = "Name of the Proxmox node on which files and VMs should be created"
type = string
nullable = false
}
variable "pve_storage_id" {
description = "Name of the Proxmox Storage on which files (ISOs) and VM disks should be created"
type = string
nullable = false
}
variable "pve_ssh_user" {
description = "User used to connect with SSH to the hypervisor to port-forward to the netboot server"
type = string
nullable = false
}
variable "pve_ssh_host" {
description = "Address of the hypervisor to connect to to port-forward to the netboot server"
type = string
nullable = false
}
variable "admin_network_name" {
description = "Admin Network Name"
type = string
nullable = false
default = "admin"
}
variable "admin_network_prefix" {
description = "Network prefix associated with the Admin network"
type = string
nullable = false
validation {
condition = can(cidrnetmask(var.admin_network_prefix))
error_message = "Invalid Admin network prefix"
}
}
variable "prod_network_name" {
description = "Production Network Name"
type = string
nullable = false
default = "prod"
}
variable "prod_network_prefix" {
description = "Network prefix associated with the prod network"
type = string
nullable = false
validation {
condition = can(cidrnetmask(var.prod_network_prefix))
error_message = "Invalid Prod network prefix"
}
}
variable "monit_network_name" {
description = "Monitoring Network Name"
type = string
nullable = false
default = "monit"
}
variable "monit_network_prefix" {
description = "Network prefix associated with the monit network"
type = string
nullable = false
validation {
condition = can(cidrnetmask(var.monit_network_prefix))
error_message = "Invalid monitoring network prefix"
}
}
variable "ssh_public_key_opentofu_netboot_server" {
description = "SSH public key used by Opentofu to connect to the terraform_dhcp and terraform_ignition SFTP accounts"
type = string
nullable = false
}
variable "ssh_public_key_admin_netboot_server" {
description = "SSH public key used to connect to the core account on the netboot_server instance"
type = string
nullable = false
}