From 9ac5a99beee65a4bf3de55fa92b0ea3afc8ec063 Mon Sep 17 00:00:00 2001 From: Ryan Toler Date: Thu, 19 Mar 2026 06:30:44 +0000 Subject: [PATCH] remove 2nd disks they do not work currently in bgp --- lxc/downloader/main.tf | 18 ------------------ lxc/downloader/vars.tf | 15 --------------- lxc/owncloud/main.tf | 15 --------------- lxc/owncloud/vars.tf | 16 +--------------- lxc/uptimekuma/main.tf | 18 ------------------ lxc/uptimekuma/vars.tf | 17 +---------------- 6 files changed, 2 insertions(+), 97 deletions(-) diff --git a/lxc/downloader/main.tf b/lxc/downloader/main.tf index 44bf482..0dd8a42 100644 --- a/lxc/downloader/main.tf +++ b/lxc/downloader/main.tf @@ -29,24 +29,6 @@ resource "proxmox_virtual_environment_container" "example_template" { 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 { dns { diff --git a/lxc/downloader/vars.tf b/lxc/downloader/vars.tf index 6394101..1006f47 100644 --- a/lxc/downloader/vars.tf +++ b/lxc/downloader/vars.tf @@ -29,21 +29,6 @@ variable "disk_size_gb" { 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 # --------------------------------------------------------------- diff --git a/lxc/owncloud/main.tf b/lxc/owncloud/main.tf index bea935f..2b09337 100644 --- a/lxc/owncloud/main.tf +++ b/lxc/owncloud/main.tf @@ -29,23 +29,8 @@ resource "proxmox_virtual_environment_container" "example_template" { 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 { diff --git a/lxc/owncloud/vars.tf b/lxc/owncloud/vars.tf index 8053b11..f015f19 100644 --- a/lxc/owncloud/vars.tf +++ b/lxc/owncloud/vars.tf @@ -26,23 +26,9 @@ variable "datastore_id" { variable "disk_size_gb" { 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 -} # --------------------------------------------------------------- diff --git a/lxc/uptimekuma/main.tf b/lxc/uptimekuma/main.tf index 44bf482..0dd8a42 100644 --- a/lxc/uptimekuma/main.tf +++ b/lxc/uptimekuma/main.tf @@ -29,24 +29,6 @@ resource "proxmox_virtual_environment_container" "example_template" { 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 { dns { diff --git a/lxc/uptimekuma/vars.tf b/lxc/uptimekuma/vars.tf index 25efbea..64bb97e 100644 --- a/lxc/uptimekuma/vars.tf +++ b/lxc/uptimekuma/vars.tf @@ -17,7 +17,7 @@ variable "nesting_enabled" { } # --------------------------------------------------------------- -# Disk sizes (primary + optional) +# Disk sizes (primary ) # --------------------------------------------------------------- variable "datastore_id" { type = string @@ -29,21 +29,6 @@ variable "disk_size_gb" { 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 # ---------------------------------------------------------------