mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 09:57:42 +00:00
remove 2nd disks they do not work currently in bgp
This commit is contained in:
@@ -29,24 +29,6 @@ resource "proxmox_virtual_environment_container" "example_template" {
|
|||||||
size = var.disk_size_gb # in GB
|
size = var.disk_size_gb # in GB
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "disk" { # <-- optional second disk
|
|
||||||
for_each = var.second_disk_enabled ? [1] : []
|
|
||||||
|
|
||||||
content {
|
|
||||||
datastore_id = var.second_disk_datastore
|
|
||||||
size = var.second_disk_size_gb
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# Mount points – uncomment and set if you need to mount a volume.
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
#mount_point {
|
|
||||||
# volume = var.mount_volume
|
|
||||||
# size = "4G"
|
|
||||||
# path = "/mnt/local"
|
|
||||||
#}
|
|
||||||
|
|
||||||
# ---- Initialization -------------------------------------------------
|
# ---- Initialization -------------------------------------------------
|
||||||
initialization {
|
initialization {
|
||||||
dns {
|
dns {
|
||||||
|
|||||||
@@ -29,21 +29,6 @@ variable "disk_size_gb" {
|
|||||||
default = 64
|
default = 64
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "second_disk_enabled" {
|
|
||||||
type = bool
|
|
||||||
default = false
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "second_disk_datastore" {
|
|
||||||
type = string
|
|
||||||
default = "local-lvm"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "second_disk_size_gb" {
|
|
||||||
type = number
|
|
||||||
default = 8
|
|
||||||
}
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Initialization specifics
|
# Initialization specifics
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|||||||
@@ -29,23 +29,8 @@ resource "proxmox_virtual_environment_container" "example_template" {
|
|||||||
size = var.disk_size_gb # in GB
|
size = var.disk_size_gb # in GB
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "disk" { # <-- optional second disk
|
|
||||||
for_each = var.second_disk_enabled ? [1] : []
|
|
||||||
|
|
||||||
content {
|
|
||||||
datastore_id = var.second_disk_datastore
|
|
||||||
size = var.second_disk_size_gb
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# Mount points – uncomment and set if you need to mount a volume.
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
#mount_point {
|
|
||||||
# volume = var.mount_volume
|
|
||||||
# size = "4G"
|
|
||||||
# path = "/mnt/local"
|
|
||||||
#}
|
|
||||||
|
|
||||||
# ---- Initialization -------------------------------------------------
|
# ---- Initialization -------------------------------------------------
|
||||||
initialization {
|
initialization {
|
||||||
|
|||||||
@@ -26,23 +26,9 @@ variable "datastore_id" {
|
|||||||
|
|
||||||
variable "disk_size_gb" {
|
variable "disk_size_gb" {
|
||||||
type = number
|
type = number
|
||||||
default = 128
|
default = 450
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "second_disk_enabled" {
|
|
||||||
type = bool
|
|
||||||
default = true
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "second_disk_datastore" {
|
|
||||||
type = string
|
|
||||||
default = "local-lvm"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "second_disk_size_gb" {
|
|
||||||
type = number
|
|
||||||
default = 400
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|||||||
@@ -29,24 +29,6 @@ resource "proxmox_virtual_environment_container" "example_template" {
|
|||||||
size = var.disk_size_gb # in GB
|
size = var.disk_size_gb # in GB
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "disk" { # <-- optional second disk
|
|
||||||
for_each = var.second_disk_enabled ? [1] : []
|
|
||||||
|
|
||||||
content {
|
|
||||||
datastore_id = var.second_disk_datastore
|
|
||||||
size = var.second_disk_size_gb
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# Mount points – uncomment and set if you need to mount a volume.
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
#mount_point {
|
|
||||||
# volume = var.mount_volume
|
|
||||||
# size = "4G"
|
|
||||||
# path = "/mnt/local"
|
|
||||||
#}
|
|
||||||
|
|
||||||
# ---- Initialization -------------------------------------------------
|
# ---- Initialization -------------------------------------------------
|
||||||
initialization {
|
initialization {
|
||||||
dns {
|
dns {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ variable "nesting_enabled" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Disk sizes (primary + optional)
|
# Disk sizes (primary )
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
variable "datastore_id" {
|
variable "datastore_id" {
|
||||||
type = string
|
type = string
|
||||||
@@ -29,21 +29,6 @@ variable "disk_size_gb" {
|
|||||||
default = 64
|
default = 64
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "second_disk_enabled" {
|
|
||||||
type = bool
|
|
||||||
default = false
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "second_disk_datastore" {
|
|
||||||
type = string
|
|
||||||
default = "local-lvm"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "second_disk_size_gb" {
|
|
||||||
type = number
|
|
||||||
default = 8
|
|
||||||
}
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Initialization specifics
|
# Initialization specifics
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user