From cb0a5869d996b32db8e715bce38052ced0e514c5 Mon Sep 17 00:00:00 2001 From: Tim Unkrig Date: Fri, 27 Oct 2023 14:14:50 +0200 Subject: [PATCH 1/2] added services vm to repoasdsdasd --- infrastructure/infra.tf | 3 ++- infrastructure/service.tf | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/infrastructure/infra.tf b/infrastructure/infra.tf index 6a737d7..860f4c9 100644 --- a/infrastructure/infra.tf +++ b/infrastructure/infra.tf @@ -35,8 +35,9 @@ resource "proxmox_virtual_environment_vm" "infra" { disk { datastore_id = "local" - size = 30 + size = 50 ssd = true + discard = "ignore" iothread = true interface = "scsi0" } diff --git a/infrastructure/service.tf b/infrastructure/service.tf index e5c58db..4965cbd 100644 --- a/infrastructure/service.tf +++ b/infrastructure/service.tf @@ -3,8 +3,8 @@ resource "proxmox_virtual_environment_vm" "services" { acpi = true vm_id = "114" machine = "q35" - name = "services" - node_name = "proxmox" + # name = "services" + # node_name = "proxmox" scsi_hardware = "virtio-scsi-pci" started = true tablet_device = false @@ -38,6 +38,7 @@ resource "proxmox_virtual_environment_vm" "services" { size = 30 ssd = true iothread = true + discard = "ignore" interface = "scsi0" } From 9cdbf83b4af6cd6424c1e6ff3de3cc7ab403f1fa Mon Sep 17 00:00:00 2001 From: Tim Unkrig Date: Fri, 27 Oct 2023 14:25:23 +0200 Subject: [PATCH 2/2] added discard option to devops vm --- infrastructure/devops.tf | 1 + infrastructure/infra.tf | 2 +- infrastructure/service.tf | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/infrastructure/devops.tf b/infrastructure/devops.tf index 6cc4c05..3f78d30 100644 --- a/infrastructure/devops.tf +++ b/infrastructure/devops.tf @@ -37,6 +37,7 @@ resource "proxmox_virtual_environment_vm" "devops" { datastore_id = "local" size = 30 ssd = true + discard = "ignore" iothread = true interface = "scsi0" } diff --git a/infrastructure/infra.tf b/infrastructure/infra.tf index 860f4c9..d9533f1 100644 --- a/infrastructure/infra.tf +++ b/infrastructure/infra.tf @@ -35,7 +35,7 @@ resource "proxmox_virtual_environment_vm" "infra" { disk { datastore_id = "local" - size = 50 + size = 30 ssd = true discard = "ignore" iothread = true diff --git a/infrastructure/service.tf b/infrastructure/service.tf index 4965cbd..111fffb 100644 --- a/infrastructure/service.tf +++ b/infrastructure/service.tf @@ -3,8 +3,8 @@ resource "proxmox_virtual_environment_vm" "services" { acpi = true vm_id = "114" machine = "q35" - # name = "services" - # node_name = "proxmox" + name = "services" + node_name = "proxmox" scsi_hardware = "virtio-scsi-pci" started = true tablet_device = false