From c8583d69eecb105761dc141df1f3f2691d441857 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 9 Jun 2024 12:05:45 -0400 Subject: [PATCH] adding nexus and fixing tags --- arrbuntu.tf | 2 +- downloaders.tf | 4 ++-- nexus.tf | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ npm.tf | 2 +- whisper.tf | 2 +- 5 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 nexus.tf diff --git a/arrbuntu.tf b/arrbuntu.tf index 7902d95..1d20ae8 100644 --- a/arrbuntu.tf +++ b/arrbuntu.tf @@ -5,7 +5,7 @@ resource "proxmox_virtual_environment_vm" "Arrbuntu" { vm_id = 200 name = "arrbuntu" description = "arrbuntu" - tags = ["tofu", "ubuntu-22, auto-homelab-repo, infrastructure"] + tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"] agent { enabled = true # read 'Qemu guest agent' section, change to true only when ready diff --git a/downloaders.tf b/downloaders.tf index 533334b..eb2f288 100644 --- a/downloaders.tf +++ b/downloaders.tf @@ -5,10 +5,10 @@ resource "proxmox_virtual_environment_vm" "Downloaders" { vm_id = 201 name = "Downloaders" description = "Sab, Qbitty" - tags = ["tofu", "ubuntu-22, auto-homelab-repo, infrastructure"] + tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"] agent { - enabled = false # read 'Qemu guest agent' section, change to true only when ready + enabled = true # read 'Qemu guest agent' section, change to true only when ready } clone { diff --git a/nexus.tf b/nexus.tf new file mode 100644 index 0000000..9e22696 --- /dev/null +++ b/nexus.tf @@ -0,0 +1,63 @@ +resource "proxmox_virtual_environment_vm" "Nexus" { + + # VM General Settings + node_name = "prox" + vm_id = 205 + name = "Nexus" + description = "Docker Registry to limit DockerHub pulls" + tags = ["tofu", "ubuntu24", "auto-homelab-repo", "infrastructure"] + + agent { + enabled = true # read 'Qemu guest agent' section, change to true only when ready + } + + clone { + vm_id = 8002 + } + + # VM CPU Settings + cpu { + cores = 4 + type = "host" + } + + # VM Memory Settings + memory { + dedicated = 4096 + } + + # VM Network Settings + network_device { + bridge = "vmbr0" + } + + # VM Disk Settings + disk { + datastore_id = "Fast2Tb" + size = 120 + interface = "scsi0" + } + + vga { + type = "serial0" + } + + initialization { + ip_config { + ipv4 { + address = "dhcp" + } + } + + user_account {} + } + + lifecycle { + ignore_changes = [ + initialization[0].user_account[0].keys, + initialization[0].user_account[0].password, + initialization[0].user_account[0].username, + ] + } + +} diff --git a/npm.tf b/npm.tf index 3d2353c..9a7c9b9 100644 --- a/npm.tf +++ b/npm.tf @@ -5,7 +5,7 @@ resource "proxmox_virtual_environment_vm" "NPM" { vm_id = 204 name = "Nginx-Proxy-Manager" description = "Nginx Proxy Manager" - tags = ["tofu", "ubuntu24, auto-homelab-repo, infrastructure"] + tags = ["tofu", "ubuntu24", "auto-homelab-repo", "infrastructure"] agent { enabled = true # read 'Qemu guest agent' section, change to true only when ready diff --git a/whisper.tf b/whisper.tf index 5cb3f48..5ca149c 100644 --- a/whisper.tf +++ b/whisper.tf @@ -6,7 +6,7 @@ resource "proxmox_virtual_environment_vm" "Whisper" { name = "Whisper" machine = "q35" description = "Creates subtitles for Bazarr and stable-diffusion" - tags = ["tofu", "ubuntu-22, auto-homelab-repo"] + tags = ["tofu", "ubuntu-22", "auto-homelab-repo"] agent { enabled = true # read 'Qemu guest agent' section, change to true only when ready