terraform/variables.tf

37 lines
561 B
Terraform
Raw Normal View History

2024-12-03 11:20:16 +00:00
variable "prefix" {
type = string
default = "vm-"
}
variable "pool_path" {
type = string
default = "/var/lib/libvirt/"
}
variable "image" {
type = object({
name = string
url = string
format = string
})
}
variable "vm" {
type = object({
cpu = number
ram = number
disk = number
bridge = string
})
}
variable "domains" {
description = "List of VMs with specified parameters"
type = list(object({
name = string,
cpu = number,
ram = number,
disk = number,
ip = string
}))
}