forked from fediversity/fediversity
95 lines
1.7 KiB
HCL
95 lines
1.7 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 "proxmox_user" {
|
|
description = <<EOT
|
|
the ProxmoX user to use. needs privileges:
|
|
- `VM.Monitor`
|
|
- ...
|
|
EOT
|
|
type = string
|
|
default = "root@pam"
|
|
}
|
|
|
|
variable "proxmox_password" {
|
|
description = "the ProxmoX password to use"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
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 "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"
|
|
}
|