From 2f9d0533e02e1298065fb11ff2e1782cfd0a5caf Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 27 Feb 2023 11:35:53 -0800 Subject: [PATCH] Move nzbget to proxmox nfs share --- ansible_playbooks/ansible_hosts.yml | 13 ++++++++++--- services/backups/jobs/nzbget.hcl | 7 ++++++- services/ip-dvr.nomad | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ansible_playbooks/ansible_hosts.yml b/ansible_playbooks/ansible_hosts.yml index 7c1893c..26add34 100644 --- a/ansible_playbooks/ansible_hosts.yml +++ b/ansible_playbooks/ansible_hosts.yml @@ -22,6 +22,12 @@ all: group: "bin" mode: "0755" read_only: false + # Moxy shared volumes + - name: nzbget-config + path: /srv/volumes/moxy/nzbget + owner: "nobody" + group: "bin" + read_only: false n2.thefij: nfs_mounts: - src: 10.50.250.2:/srv/volumes @@ -48,9 +54,10 @@ all: group: "bin" mode: "0755" read_only: false - - name: nzbget-data - path: /srv/volumes/nzbget - owner: "root" + # Moxy shared volumes + - name: nzbget-config + path: /srv/volumes/moxy/nzbget + owner: "nobody" group: "bin" mode: "0755" read_only: false diff --git a/services/backups/jobs/nzbget.hcl b/services/backups/jobs/nzbget.hcl index 8677466..c12c801 100644 --- a/services/backups/jobs/nzbget.hcl +++ b/services/backups/jobs/nzbget.hcl @@ -7,7 +7,12 @@ job "nzbget" { } backup { - paths = ["/data/nzbget"] + paths = [ + # Configuration + "/data/nzbget", + # Queued nzb files + "/data/media-write/Downloads/nzb", + ] # Because path is absolute restore_opts { Target = "/" diff --git a/services/ip-dvr.nomad b/services/ip-dvr.nomad index c95a8d5..4c9b245 100644 --- a/services/ip-dvr.nomad +++ b/services/ip-dvr.nomad @@ -74,7 +74,7 @@ job "ipdvr" { } volume_mount { - volume = "nzbget-data" + volume = "nzbget-config" destination = "/config" read_only = false } @@ -87,7 +87,7 @@ job "ipdvr" { resources { cpu = 200 - memory = 200 + memory = 300 memory_max = 500 } }