iac/modules/netboot_server/variables.tf

79 lines
1.3 KiB
Terraform
Raw Permalink Normal View History

2024-06-04 11:25:59 +02:00
variable "pve_api_base_url" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "pve_api_token" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
sensitive = true
2024-06-04 11:25:59 +02:00
}
variable "pve_node_name" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "pve_storage_id" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "pve_vm_id" {
2025-01-26 17:56:16 +01:00
type = number
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "prod_network_name" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "dhcp_server_ip_addr" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
validation {
condition = can(cidrnetmask("${var.dhcp_server_ip_addr}/32"))
error_message = "Invalid DHCP server address."
}
2024-06-04 11:25:59 +02:00
}
variable "dhcp_iface" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "dhcp_gateway" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
validation {
condition = can(cidrnetmask("${var.dhcp_gateway}/32"))
error_message = "Invalid gateway"
}
2024-06-04 11:25:59 +02:00
}
variable "dhcp_range" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
validation {
condition = can(cidrnetmask(var.dhcp_range))
error_message = "Invalid DHCP range."
}
2024-06-04 11:25:59 +02:00
}
variable "ssh_public_key_opentofu_netboot_server" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}
variable "fcos_image_version" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
default = "40.20240504.3.0"
2024-06-04 11:25:59 +02:00
}
variable "hostname" {
2025-01-26 17:56:16 +01:00
type = string
nullable = false
2024-06-04 11:25:59 +02:00
}