add gateway automatic template and fefan vm
This commit is contained in:
@@ -2,7 +2,7 @@ terraform {
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "bpg/proxmox"
|
||||
version = "0.42.0"
|
||||
version = "0.93.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,6 +51,7 @@ resource "proxmox_virtual_environment_vm" "vm" {
|
||||
|
||||
memory {
|
||||
dedicated = var.memory
|
||||
floating = var.balloon
|
||||
}
|
||||
|
||||
disk {
|
||||
|
||||
@@ -21,6 +21,12 @@ variable "memory" {
|
||||
default = 2048
|
||||
}
|
||||
|
||||
variable "balloon" {
|
||||
description = "Minimum vm memory, using ballooning devide to reach Proxmox node memory target."
|
||||
type = number
|
||||
default = 1024
|
||||
}
|
||||
|
||||
variable "template_id" {
|
||||
type = number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user