mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-29 03:26:14 +01:00
fba9f356a8
Signed-off-by: Magic_RB <magic_rb@redalder.org>
87 lines
2 KiB
HCL
87 lines
2 KiB
HCL
resource "nomad_volume" "jellyfin-cache" {
|
|
type = "csi"
|
|
plugin_id = "org.democratic-csi.nfs"
|
|
volume_id = "jellyfin-cache"
|
|
name = "jellyfin-cache"
|
|
external_id = "jellyfin-cache"
|
|
|
|
capability {
|
|
access_mode = "single-node-writer"
|
|
attachment_mode = "file-system"
|
|
}
|
|
|
|
context = {
|
|
server = "blowhole.hosts.in.redalder.org"
|
|
share = "/mnt/kyle/infrastructure/jellyfin/cache"
|
|
node_attach_driver = "nfs"
|
|
provisioner_driver = "node-manual"
|
|
}
|
|
|
|
mount_options {
|
|
fs_type = "nfs"
|
|
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
|
}
|
|
}
|
|
|
|
resource "nomad_volume" "jellyfin-config" {
|
|
type = "csi"
|
|
plugin_id = "org.democratic-csi.nfs"
|
|
volume_id = "jellyfin-config"
|
|
name = "jellyfin-config"
|
|
external_id = "jellyfin-config"
|
|
|
|
capability {
|
|
access_mode = "single-node-writer"
|
|
attachment_mode = "file-system"
|
|
}
|
|
|
|
context = {
|
|
server = "blowhole.hosts.in.redalder.org"
|
|
share = "/mnt/kyle/infrastructure/jellyfin/config"
|
|
node_attach_driver = "nfs"
|
|
provisioner_driver = "node-manual"
|
|
}
|
|
|
|
mount_options {
|
|
fs_type = "nfs"
|
|
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
|
}
|
|
}
|
|
|
|
resource "nomad_volume" "jellyfin-media" {
|
|
type = "csi"
|
|
plugin_id = "org.democratic-csi.nfs"
|
|
volume_id = "jellyfin-media"
|
|
name = "jellyfin-media"
|
|
external_id = "jellyfin-media"
|
|
|
|
capability {
|
|
access_mode = "single-node-writer"
|
|
attachment_mode = "file-system"
|
|
}
|
|
|
|
context = {
|
|
server = "blowhole.hosts.in.redalder.org"
|
|
share = "/mnt/kyle/infrastructure/jellyfin/media"
|
|
node_attach_driver = "nfs"
|
|
provisioner_driver = "node-manual"
|
|
}
|
|
|
|
mount_options {
|
|
fs_type = "nfs"
|
|
mount_flags = [ "hard", "vers=4.2", "rsize=131072", "wsize=131072", "async" ]
|
|
}
|
|
}
|
|
|
|
resource "nomad_job" "jellyfin" {
|
|
jobspec = file("${path.module}/job/jellyfin.hcl")
|
|
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
# flake_ref = var.flake_ref
|
|
# flake_sha = var.flake_sha
|
|
}
|
|
}
|
|
}
|