terraform: add libvirt cloud VM provisioning
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user