42 lines
1.2 KiB
HCL
42 lines
1.2 KiB
HCL
variable "libvirt_uri" {
|
|
description = "Libvirt connection used to create the Fedora machines."
|
|
type = string
|
|
default = "qemu:///system"
|
|
}
|
|
|
|
variable "fedora_image_url" {
|
|
description = "Fedora 44 Cloud Base Generic x86_64 image URL."
|
|
type = string
|
|
default = "https://download.fedoraproject.org/pub/fedora/linux/releases/44/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-44-1.7.x86_64.qcow2"
|
|
}
|
|
|
|
variable "ssh_public_key" {
|
|
description = "Public SSH key installed for the fedora user."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_private_key_file" {
|
|
description = "Absolute private-key path written into the generated Ansible inventory."
|
|
type = string
|
|
}
|
|
|
|
variable "operator_cidrs" {
|
|
description = "Networks allowed to administer k3s."
|
|
type = list(string)
|
|
default = ["192.168.123.1/32"]
|
|
}
|
|
|
|
variable "network_cidr" {
|
|
description = "Dedicated libvirt network for the two nodes."
|
|
type = string
|
|
default = "192.168.123.0/24"
|
|
}
|
|
|
|
variable "node_addresses" {
|
|
description = "Stable addresses assigned to each node."
|
|
type = map(string)
|
|
default = {
|
|
nereus-node1 = "192.168.123.10"
|
|
nereus-node2 = "192.168.123.11"
|
|
}
|
|
}
|