forked from fediversity/fediversity
133 lines
2.4 KiB
HCL
133 lines
2.4 KiB
HCL
variable "nixos_conf" {
|
|
description = "The path to the NixOS configuration to deploy."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_user" {
|
|
description = "the SSH user to use"
|
|
type = string
|
|
default = "root"
|
|
}
|
|
|
|
variable "host" {
|
|
description = "the host of the ProxmoX Virtual Environment."
|
|
type = string
|
|
}
|
|
|
|
variable "node_name" {
|
|
description = "the name of the ProxmoX node to use."
|
|
type = string
|
|
}
|
|
|
|
variable "key_file" {
|
|
description = "path to the user's SSH private key"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_opts" {
|
|
description = "Extra SSH options (`-o`) to use."
|
|
type = string
|
|
default = "[]"
|
|
}
|
|
|
|
variable "image" {
|
|
# description = ""
|
|
type = string
|
|
}
|
|
|
|
variable "bridge" {
|
|
description = "The name of the network bridge (defaults to vmbr0)."
|
|
type = string
|
|
default = "vmbr0"
|
|
}
|
|
|
|
variable "vlan_id" {
|
|
description = "The VLAN identifier."
|
|
type = number
|
|
default = 0
|
|
}
|
|
|
|
variable "image_datastore_id" {
|
|
description = "ID of the datastore of the image."
|
|
type = string
|
|
default = "local"
|
|
}
|
|
|
|
variable "vm_datastore_id" {
|
|
description = "ID of the datastore of the VM."
|
|
type = string
|
|
default = "local"
|
|
}
|
|
|
|
variable "cd_datastore_id" {
|
|
description = "ID of the datastore of the virtual CD-rom drive to use for cloud-init."
|
|
type = string
|
|
default = "local"
|
|
}
|
|
|
|
variable "ipv4_gateway" {
|
|
description = "Gateway for IPv4."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ipv4_address" {
|
|
description = "IPv4 address."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ipv6_gateway" {
|
|
description = "Gateway for IPv6."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ipv6_address" {
|
|
description = "IPv6 address."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
#########################################
|
|
|
|
variable "category" {
|
|
type = string
|
|
description = "Category to be used in naming the base image."
|
|
default = "test"
|
|
}
|
|
|
|
variable "description" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "sockets" {
|
|
type = number
|
|
description = "The number of sockets of the VM."
|
|
default = 1
|
|
}
|
|
|
|
variable "cores" {
|
|
type = number
|
|
description = "The number of cores of the VM."
|
|
default = 1
|
|
}
|
|
|
|
variable "memory" {
|
|
type = number
|
|
description = "The amount of memory of the VM in MiB."
|
|
default = 2048
|
|
}
|
|
|
|
variable "disk_size" {
|
|
type = number
|
|
description = "The amount of disk of the VM in GiB."
|
|
default = 32
|
|
}
|
|
|
|
variable "pool_id" {
|
|
type = string
|
|
description = "The identifier for a pool to assign the virtual machine to."
|
|
default = "Fediversity"
|
|
}
|