terracadoles/modules/virtualMachine/variables.tf

113 lines
2.1 KiB
HCL

variable "one_user" {
description = "OpenNebula user"
type = string
}
variable "one_prod_ds" {
description = "ID du Datastore de production"
type = string
}
variable "vm_fqdn" {
description = "Virtual Machine FQDN Name"
type = string
}
variable "vm_shortname" {
description = "Virtual machine short name"
type = string
}
variable "vm_domain" {
description = "Full qualified dns domain name"
type = string
}
variable "system_image_name" {
description = "System image disk name"
type = string
default = "${local.shortname}.system"
}
variable "system_image_source" {
description = "Virtual Machine system image source"
type = string
default = "https://marketplace.opennebula.io//appliance/251b0578-6c47-4ba4-b184-dc6e873201a2/download/0"
}
variable "data_image_name" {
description = "Data image disk name"
type = string
default = "${local.shortname}.data"
}
variable "data_image_source" {
description = "Virtual Machine data disk image source"
type = string
default = "https://marketplace.opennebula.io//appliance/251b0578-6c47-4ba4-b184-dc6e873201a2/download/0"
}
variable "tag_labels" {
description = "Labels"
type = string
}
variable "network_interfaces" {
description = "Network interfaces"
type = list
}
variable "cpu" {
description = "VM CPU"
type = string
}
variable "vcpu" {
description = "VM vCPU"
type = string
}
variable "ram" {
description = "VM RAM"
type = string
}
variable "depends" {
description = "List of output_variables for dependences management"
type = list
default = []
}
variable "dns_a_record" {
description = "Create a dns A record (yes/no)"
type = string
default = "no"
}
variable "dns_cname_record" {
description = "List of CNAME for A entry"
type = map(string)
default = {}
}
variable "group" {
description = "Group (owner group)"
type = string
default = "production"
}
variable "graphics" {
description = "Graphics declaration"
type = map(string)
default = {
keymap = "fr"
listen = "0.0.0.0"
type = "VNC"
}
}
variable "imagemode" {
description = "Disk image mode"
type = string
default = "0600"
}