This repository has been archived on 2023-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
tf-debian-vm/variables.tf

113 lines
2.7 KiB
HCL

variable "name" {
type = string
description = "Hostname of the machine."
}
variable "admin_authorized_keys" {
type = list(string)
}
variable "disk_pool" {
type = string
description = "Libvirt volume pool for the machine's main disk."
}
variable "disk_base" {
type = string
description = "Base image for the machine's operating system."
}
variable "disk_base_pool" {
type = string
description = "Libvirt volume pool for the base image of the machine's operating system."
}
variable "cloudinit_pool" {
type = string
description = "Libvirt volume pool for the machine's Cloud-init image."
}
variable "bridge_name" {
type = string
description = "Host bridge to connect the machine's network interface to."
}
variable "ca_host" {
type = string
description = "Host to contact when fetching a SSH host certificate."
}
variable "ca_script" {
type = string
description = "Script to call when fetching a SSH host certificate."
}
variable "ca_key" {
type = string
default = ""
description = "File name of the SSH CA key pair."
}
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."
}
variable "fixed_address" {
type = string
default = ""
description = "Fixed IPv4 address the machine should have."
}
variable "ansible_command" {
type = string
default = "true"
}
variable "fixed_dns" {
type = string
default = ""
description = "Fixed DNS server the machine should have."
}
variable "data_share" {
type = string
default = ""
description = "Location for the data share on the guest OS. Leave empty to disable."
}
variable "hypervisor_host" {
type = string
description = "Host of the hypervisor this VM runs on, in order to execute some remote-exec directives."
}