48 lines
1.1 KiB
Terraform
48 lines
1.1 KiB
Terraform
variable "libvirt_uri" {
|
|||
|
|
description = "Libvirt connection URI. Use qemu:///system for the system daemon."
|
||
|
|
type = string
|
||
|
|
default = "qemu:///system"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "libvirt_pool" {
|
||
|
|
description = "Existing libvirt storage pool for VM disks and cloud-init seed."
|
||
|
|
type = string
|
||
|
|
default = "default"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "libvirt_network" {
|
||
|
|
description = "Existing libvirt network that provides DHCP."
|
||
|
|
type = string
|
||
|
|
default = "default"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "vm_name" {
|
||
|
|
description = "Name for the Parch Linux VM."
|
||
|
|
type = string
|
||
|
|
default = "parch-cloud"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "image_path" {
|
||
|
|
description = "Optional path to a cloudimg QCOW2. Empty selects the newest output/Parch-Linux-x86_64-cloudimg-*.qcow2."
|
||
|
|
type = string
|
||
|
|
default = ""
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "ssh_public_key_path" {
|
||
|
|
description = "Path to the public SSH key injected by cloud-init."
|
||
|
|
type = string
|
||
|
|
default = "~/.ssh/id_ed25519.pub"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "memory_mib" {
|
||
|
|
description = "VM memory in MiB."
|
||
|
|
type = number
|
||
|
|
default = 2048
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "vcpu" {
|
||
|
|
description = "Number of virtual CPUs."
|
||
|
|
type = number
|
||
|
|
default = 2
|
||
|
|
}
|