mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 00:04:20 +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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/matrix/synapse"
|
share = "/mnt/kyle/infrastructure/matrix/synapse"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/matrix/postgresql"
|
share = "/mnt/kyle/infrastructure/matrix/postgresql"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/matrix/registrations"
|
share = "/mnt/kyle/infrastructure/matrix/registrations"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/matrix/mautrix-facebook"
|
share = "/mnt/kyle/infrastructure/matrix/mautrix-facebook"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/matrix/redis"
|
share = "/mnt/kyle/infrastructure/matrix/redis"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/jellyfin/cache"
|
share = "/mnt/kyle/infrastructure/jellyfin/cache"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/jellyfin/config"
|
share = "/mnt/kyle/infrastructure/jellyfin/config"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/jellyfin/media"
|
share = "/mnt/kyle/infrastructure/jellyfin/media"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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"
|
destination = "/media"
|
||||||
read_only = false
|
read_only = false
|
||||||
}
|
}
|
||||||
|
|
||||||
volume_mount {
|
|
||||||
volume = "jellyfin-mount"
|
|
||||||
destination = "/mount"
|
|
||||||
read_only = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,14 @@ resource "nomad_volume" "syncthing-data" {
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/syncthing/data"
|
share = "/mnt/kyle/infrastructure/syncthing/data"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/syncthing/storage"
|
share = "/mnt/kyle/infrastructure/syncthing/storage"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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 = {
|
context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/syncthing/config"
|
share = "/mnt/kyle/infrastructure/syncthing/config"
|
||||||
node_attach_driver = "nfs"
|
node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
provisioner_driver = "node-manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_options {
|
mount_options {
|
||||||
fs_type = "nfs"
|
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