Move nzbget and photoprism config to shared storage on NAS SSD
This commit is contained in:
parent
19d5321731
commit
36d00300c3
@ -22,17 +22,6 @@ all:
|
|||||||
group: "bin"
|
group: "bin"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
read_only: false
|
read_only: false
|
||||||
# Moxy shared volumes
|
|
||||||
- name: nzbget-config
|
|
||||||
path: /srv/volumes/moxy/nzbget
|
|
||||||
owner: "nobody"
|
|
||||||
group: "bin"
|
|
||||||
read_only: false
|
|
||||||
- name: photoprism-storage
|
|
||||||
path: /srv/volumes/moxy/photoprism-storage
|
|
||||||
owner: "nobody"
|
|
||||||
group: "bin"
|
|
||||||
read_only: false
|
|
||||||
n2.thefij:
|
n2.thefij:
|
||||||
nfs_mounts:
|
nfs_mounts:
|
||||||
- src: 10.50.250.2:/srv/volumes
|
- src: 10.50.250.2:/srv/volumes
|
||||||
@ -59,19 +48,6 @@ all:
|
|||||||
group: "bin"
|
group: "bin"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
read_only: false
|
read_only: false
|
||||||
# Moxy shared volumes
|
|
||||||
- name: nzbget-config
|
|
||||||
path: /srv/volumes/moxy/nzbget
|
|
||||||
owner: "nobody"
|
|
||||||
group: "bin"
|
|
||||||
mode: "0755"
|
|
||||||
read_only: false
|
|
||||||
- name: photoprism-storage
|
|
||||||
path: /srv/volumes/moxy/photoprism-storage
|
|
||||||
owner: "nobody"
|
|
||||||
group: "bin"
|
|
||||||
mode: "0755"
|
|
||||||
read_only: false
|
|
||||||
# n3.thefij:
|
# n3.thefij:
|
||||||
# nomad_node_class: ingress
|
# nomad_node_class: ingress
|
||||||
# nomad_node_role: both
|
# nomad_node_role: both
|
||||||
|
@ -205,6 +205,10 @@
|
|||||||
path: /srv/volumes/photos
|
path: /srv/volumes/photos
|
||||||
opts: proto=tcp,port=2049,rw
|
opts: proto=tcp,port=2049,rw
|
||||||
|
|
||||||
|
- src: 192.168.2.10:/Container
|
||||||
|
path: /srv/volumes/nas-container
|
||||||
|
opts: proto=tcp,port=2049,rw
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install nfs
|
- name: Install nfs
|
||||||
package:
|
package:
|
||||||
@ -245,12 +249,12 @@
|
|||||||
- name: photoprism-media
|
- name: photoprism-media
|
||||||
path: /srv/volumes/photos/Photoprism
|
path: /srv/volumes/photos/Photoprism
|
||||||
read_only: false
|
read_only: false
|
||||||
# - name: tv-sonarr
|
- name: photoprism-storage
|
||||||
# path: "/srv/volumes/media-write/TV Shows"
|
path: /srv/volumes/nas-container/photoprism
|
||||||
# owner: 1001
|
read_only: false
|
||||||
# group: 100
|
- name: nzbget-config
|
||||||
# mode: "0755"
|
path: /srv/volumes/nas-container/nzbget
|
||||||
# read_only: false
|
read_only: false
|
||||||
- name: all-volumes
|
- name: all-volumes
|
||||||
path: /srv/volumes
|
path: /srv/volumes
|
||||||
owner: "root"
|
owner: "root"
|
||||||
|
@ -9,7 +9,7 @@ job "nzbget" {
|
|||||||
backup {
|
backup {
|
||||||
paths = [
|
paths = [
|
||||||
# Configuration
|
# Configuration
|
||||||
"/data/nzbget",
|
"/data/nas-container/nzbget",
|
||||||
# Queued nzb files
|
# Queued nzb files
|
||||||
"/data/media-write/Downloads/nzb",
|
"/data/media-write/Downloads/nzb",
|
||||||
]
|
]
|
||||||
|
@ -27,14 +27,7 @@ job "photoprism" {
|
|||||||
backup {
|
backup {
|
||||||
paths = [
|
paths = [
|
||||||
"/local/photoprism",
|
"/local/photoprism",
|
||||||
# NOTE: Right now the cache and sidecar files are stored in the task local
|
"/data/nas-container/photoprism",
|
||||||
# storage and not in a volume that can be backed up. This was done to allow
|
|
||||||
# Photoprism to be moved between hosts. If this directory becomes large and
|
|
||||||
# costly to move between hosts or regenerate, then it may be worth putting it
|
|
||||||
# on a host volume so it can be backed up as well. Possibly once I get NFS
|
|
||||||
# shares running from the Proxmox host available to the VMs for faster shared
|
|
||||||
# storage.
|
|
||||||
"/data/moxy/photoprism-storage",
|
|
||||||
]
|
]
|
||||||
# Because path is absolute
|
# Because path is absolute
|
||||||
restore_opts {
|
restore_opts {
|
||||||
|
@ -95,10 +95,10 @@ job "ipdvr" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
volume "nzbget-data" {
|
volume "nzbget-config" {
|
||||||
type = "host"
|
type = "host"
|
||||||
read_only = false
|
read_only = false
|
||||||
source = "nzbget-data"
|
source = "nzbget-config"
|
||||||
}
|
}
|
||||||
|
|
||||||
volume "media-downloads" {
|
volume "media-downloads" {
|
||||||
|
Loading…
Reference in New Issue
Block a user