mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-21 15:54:21 +01:00
Move data dirs over to ZFS
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
f1769b15bc
commit
fba9f356a8
|
@ -12,14 +12,14 @@ resource "nomad_volume" "matrix-synapse" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/matrix/synapse"
|
||||
share = "/mnt/kyle/infrastructure/matrix/synapse"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=16384", "wsize=16384", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,14 +37,14 @@ resource "nomad_volume" "matrix-postgresql" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/matrix/postgresql"
|
||||
share = "/mnt/kyle/infrastructure/matrix/postgresql"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=16384", "wsize=16384", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,14 +62,14 @@ resource "nomad_volume" "matrix-registrations" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/matrix/registrations"
|
||||
share = "/mnt/kyle/infrastructure/matrix/registrations"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=16384", "wsize=16384", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,14 +87,14 @@ resource "nomad_volume" "matrix-mautrix-facebook" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/matrix/mautrix-facebook"
|
||||
share = "/mnt/kyle/infrastructure/matrix/mautrix-facebook"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=16384", "wsize=16384", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,14 +112,14 @@ resource "nomad_volume" "matrix-redis" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/matrix/redis"
|
||||
share = "/mnt/kyle/infrastructure/matrix/redis"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=16384", "wsize=16384", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,14 +12,14 @@ resource "nomad_volume" "jellyfin-cache" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/jellyfin/cache"
|
||||
share = "/mnt/kyle/infrastructure/jellyfin/cache"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,14 +37,14 @@ resource "nomad_volume" "jellyfin-config" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/jellyfin/config"
|
||||
share = "/mnt/kyle/infrastructure/jellyfin/config"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,14 +62,14 @@ resource "nomad_volume" "jellyfin-media" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/jellyfin/media"
|
||||
share = "/mnt/kyle/infrastructure/jellyfin/media"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -118,12 +118,6 @@ job "jellyfin" {
|
|||
destination = "/media"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "jellyfin-mount"
|
||||
destination = "/mount"
|
||||
read_only = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,14 +12,14 @@ resource "nomad_volume" "syncthing-data" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/syncthing/data"
|
||||
share = "/mnt/kyle/infrastructure/syncthing/data"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,14 +37,14 @@ resource "nomad_volume" "syncthing-storage" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/syncthing/storage"
|
||||
share = "/mnt/kyle/infrastructure/syncthing/storage"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,14 +62,14 @@ resource "nomad_volume" "syncthing-config" {
|
|||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/syncthing/config"
|
||||
share = "/mnt/kyle/infrastructure/syncthing/config"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue