From b95716d38bbec6cbd171b29576455564b7f8ee9f Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 9 Jan 2025 22:14:58 -0500 Subject: [PATCH] turn off windows, update Plex --- .forgejo/workflows/CD.yml | 2 ++ docker/plex/docker-compose.yml | 8 +++++++- terraform/proxmox/Plex.tf | 7 ++++++- terraform/proxmox/windows.tf | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index c257b9b..0e64fd6 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -111,6 +111,7 @@ jobs: e4c5d8be-b91f-41ab-8071-b23e00203340 > kasm_host 566329f5-5af3-4bcd-b187-b23e00216134 > netboot_host fb62a8d1-6dd5-4fab-aff4-b23e0021e215 > npm_host + fe0a2fa5-8e2b-4b4f-ac68-b26100315b20 > plex_host 90a16954-45df-49ad-9f45-b23e002273c5 > runner_host a5b6fa4b-4643-4f85-988b-b23e00245e2f > ubu_host 26b06759-9791-42d7-a076-b23e0063c4dd > ssh_private_key @@ -128,6 +129,7 @@ jobs: kasm.lan ansible_host=${{ steps.bitwarden-secrets.outputs.kasm_host }} ansible_user=mafyuh netboot.lan ansible_host=${{ steps.bitwarden-secrets.outputs.netboot_host }} ansible_user=mafyuh npm.lan ansible_host=${{ steps.bitwarden-secrets.outputs.npm_host }} ansible_user=mafyuh + plex.lan ansible_host=${{ steps.bitwarden-secrets.outputs.plex_host }} ansible_user=mafyuh ansible_port=2009 runner.lan ansible_host=${{ steps.bitwarden-secrets.outputs.runner_host }} ansible_user=mafyuh ubu.lan ansible_host=${{ steps.bitwarden-secrets.outputs.ubu_host }} ansible_user=mafyuh EOF diff --git a/docker/plex/docker-compose.yml b/docker/plex/docker-compose.yml index 4d3e425..909963c 100644 --- a/docker/plex/docker-compose.yml +++ b/docker/plex/docker-compose.yml @@ -8,15 +8,21 @@ services: - PGID=1000 - TZ=Etc/UTC - VERSION=docker + - NVIDIA_VISIBLE_DEVICES=all volumes: - /docker/appdata/plex/library:/config - nas:/data/media restart: unless-stopped + deploy: + resources: + reservations: + devices: + - capabilities: [gpu] volumes: nas: driver: local driver_opts: type: nfs - o: addr=nas.lan,vers=4,rw + o: addr=nas.lan,vers=4,ro device: ":/mnt/thePool/thePoolShare/Media" \ No newline at end of file diff --git a/terraform/proxmox/Plex.tf b/terraform/proxmox/Plex.tf index 4982c40..f0ee42d 100644 --- a/terraform/proxmox/Plex.tf +++ b/terraform/proxmox/Plex.tf @@ -16,7 +16,7 @@ resource "proxmox_virtual_environment_vm" "Plex" { network_device { bridge = "vmbr0" - vlan_id = 1 + vlan_id = 23 } disk { @@ -29,6 +29,11 @@ resource "proxmox_virtual_environment_vm" "Plex" { vm_id = "9996" } + vga { + memory = 16 + type = "serial0" + } + initialization { ip_config { ipv4 { diff --git a/terraform/proxmox/windows.tf b/terraform/proxmox/windows.tf index f83776e..05b0c34 100644 --- a/terraform/proxmox/windows.tf +++ b/terraform/proxmox/windows.tf @@ -3,9 +3,9 @@ resource "proxmox_virtual_environment_vm" "Windows11" { node_name = "pve2" vm_id = 250 tags = ["tofu"] - started = true + started = false bios = "ovmf" - machine = "q35" + machine = "pc-q35-9.0" agent { enabled = true