2023-04-05 14:48:38 +00:00
|
|
|
variable "name" {
|
2023-04-18 07:58:34 +00:00
|
|
|
type = string
|
|
|
|
description = "Hostname of the machine."
|
2023-04-05 14:48:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "admin_authorized_keys" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2023-04-05 15:12:16 +00:00
|
|
|
variable "disk_pool" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Libvirt volume pool for the machine's main disk."
|
2023-04-05 15:12:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "disk_base" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Base image for the machine's operating system."
|
2023-04-05 15:12:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "disk_base_pool" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Libvirt volume pool for the base image of the machine's operating system."
|
2023-04-05 15:12:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "cloudinit_pool" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Libvirt volume pool for the machine's Cloud-init image."
|
2023-04-05 15:12:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "bridge_name" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Host bridge to connect the machine's network interface to."
|
2023-04-05 15:12:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "ca_host" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Host to contact when fetching a SSH host certificate."
|
|
|
|
}
|
|
|
|
|
2023-04-23 22:05:48 +00:00
|
|
|
variable "ca_script" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
2023-04-23 22:05:48 +00:00
|
|
|
description = "Script to call when fetching a SSH host certificate."
|
|
|
|
}
|
|
|
|
|
2023-04-25 15:50:02 +00:00
|
|
|
variable "ca_key" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
description = "File name of the SSH CA key pair."
|
|
|
|
}
|
|
|
|
|
2023-04-18 07:58:34 +00:00
|
|
|
variable "domain_name" {
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
description = "Libvirt domain name of the machine, as well as the name of related storage media. Reverts to the domain name if undefined."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "disk_size" {
|
|
|
|
type = number
|
|
|
|
default = 1024 * 1024 * 1024 * 15
|
|
|
|
description = "Size of the machine's main disk."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "memory" {
|
|
|
|
type = number
|
|
|
|
default = 1024
|
|
|
|
description = "Size of the memory of the machine."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "mac" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
|
|
|
default = null
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "MAC address of the machine's network interface."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "insecure_password" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = bool
|
|
|
|
default = false
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Whether to enable insecure password (for testing purposes). Allows logging in via SSH with `root:root` credentials."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "use_host_cert" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = bool
|
|
|
|
default = false
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Whether this machine should receive a SSH host certificate."
|
2023-04-05 15:12:16 +00:00
|
|
|
}
|
2023-04-07 14:02:02 +00:00
|
|
|
|
2023-04-07 16:05:37 +00:00
|
|
|
variable "fixed_address" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
|
|
|
default = ""
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Fixed IPv4 address the machine should have."
|
2023-04-07 14:02:02 +00:00
|
|
|
}
|
2023-04-09 08:46:17 +00:00
|
|
|
|
|
|
|
variable "ansible_command" {
|
|
|
|
type = string
|
2023-04-09 09:34:30 +00:00
|
|
|
default = "true"
|
2023-04-09 08:46:17 +00:00
|
|
|
}
|
2023-04-17 07:31:30 +00:00
|
|
|
|
|
|
|
variable "fixed_dns" {
|
2023-04-25 15:50:02 +00:00
|
|
|
type = string
|
|
|
|
default = ""
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Fixed DNS server the machine should have."
|
2023-04-17 07:31:30 +00:00
|
|
|
}
|
2023-04-25 20:33:57 +00:00
|
|
|
|
2023-05-06 13:22:26 +00:00
|
|
|
variable "data_share" {
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
description = "Location for the data share on the guest OS."
|
2023-04-25 20:33:57 +00:00
|
|
|
}
|
2023-05-04 08:44:11 +00:00
|
|
|
|
|
|
|
variable "hypervisor_host" {
|
|
|
|
type = string
|
|
|
|
description = "Host of the hypervisor this VM runs on, in order to execute some remote-exec directives."
|
|
|
|
}
|