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-05 15:40:21 +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-05 15:40:21 +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-05 15:40:21 +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-05 15:40:21 +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" {
|
|
|
|
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" {
|
|
|
|
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" {
|
|
|
|
type = string
|
|
|
|
description = "Script to call when fetching a SSH host certificate."
|
|
|
|
}
|
|
|
|
|
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" {
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
description = "MAC address of the machine's network interface."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "insecure_password" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
|
|
|
description = "Whether to enable insecure password (for testing purposes). Allows logging in via SSH with `root:root` credentials."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "use_host_cert" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
|
|
|
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 15:42:54 +00:00
|
|
|
variable "data_disk" {
|
2023-04-07 16:05:37 +00:00
|
|
|
type = string
|
|
|
|
default = null
|
2023-04-18 07:58:34 +00:00
|
|
|
description = "Identifier of the machine's persistent data disk."
|
2023-04-07 16:05:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "fixed_address" {
|
|
|
|
type = string
|
2023-04-08 16:44:46 +00:00
|
|
|
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" {
|
|
|
|
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
|
|
|
}
|