Make Hydra work under new system

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2022-10-08 01:27:19 +02:00 committed by main
parent b6b9e09535
commit 3e69bacea5
2 changed files with 14 additions and 11 deletions

View file

@ -1,7 +1,6 @@
resource "nomad_volume" "hydra-db" {
# depends_on = [data.nomad_plugin.nomad-driver-containerd]
type = "csi"
plugin_id = "nfs"
plugin_id = "org.democratic-csi.nfs"
volume_id = "hydra-db"
name = "hydra-db"
external_id = "hydra-db"
@ -14,18 +13,19 @@ resource "nomad_volume" "hydra-db" {
context = {
server = "blowhole.hosts.in.redalder.org"
share = "/var/nfs/hydra-db"
node_attach_driver = "nfs"
provisioner_driver = "node-manual"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "nolock", "hard" ]
mount_flags = [ "nfsvers=3", "hard", "async" ]
}
}
resource "nomad_volume" "hydra-data" {
# depends_on = [data.nomad_plugin.nomad-driver-containerd]
type = "csi"
plugin_id = "nfs"
plugin_id = "org.democratic-csi.nfs"
volume_id = "hydra-data"
name = "hydra-data"
external_id = "hydra-data"
@ -38,18 +38,19 @@ resource "nomad_volume" "hydra-data" {
context = {
server = "blowhole.hosts.in.redalder.org"
share = "/var/nfs/hydra-data"
node_attach_driver = "nfs"
provisioner_driver = "node-manual"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "nolock", "hard" ]
mount_flags = [ "nfsvers=3", "hard", "async" ]
}
}
resource "nomad_volume" "hydra-nix" {
# depends_on = [data.nomad_plugin.nomad-driver-containerd]
type = "csi"
plugin_id = "nfs"
plugin_id = "org.democratic-csi.nfs"
volume_id = "hydra-nix"
name = "hydra-nix"
external_id = "hydra-nix"
@ -62,11 +63,13 @@ resource "nomad_volume" "hydra-nix" {
context = {
server = "blowhole.hosts.in.redalder.org"
share = "/var/nfs/hydra-nix"
node_attach_driver = "nfs"
provisioner_driver = "node-manual"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "nolock", "hard" ]
mount_flags = [ "nfsvers=3", "hard", "async" ]
}
}

View file

@ -104,8 +104,8 @@ job "hydra" {
resources {
cpu = 4000
memory = 1024
memory_max = 3072
memory = 4096
memory_max = 8096
}
template {