Move data dirs over to ZFS

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-05-03 12:07:50 +02:00
parent f1769b15bc
commit fba9f356a8
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
4 changed files with 22 additions and 28 deletions

View file

@ -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" ]
}
}

View file

@ -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" ]
}
}

View file

@ -118,12 +118,6 @@ job "jellyfin" {
destination = "/media"
read_only = false
}
volume_mount {
volume = "jellyfin-mount"
destination = "/mount"
read_only = true
}
}
}
}

View file

@ -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" ]
}
}