mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-24 17:16:15 +01:00
Disable Hydra
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
925666d19f
commit
45aee89f92
|
@ -1,95 +1,95 @@
|
|||
resource "nomad_volume" "hydra-db" {
|
||||
type = "csi"
|
||||
plugin_id = "org.democratic-csi.nfs"
|
||||
volume_id = "hydra-db"
|
||||
name = "hydra-db"
|
||||
external_id = "hydra-db"
|
||||
# resource "nomad_volume" "hydra-db" {
|
||||
# type = "csi"
|
||||
# plugin_id = "org.democratic-csi.nfs"
|
||||
# volume_id = "hydra-db"
|
||||
# name = "hydra-db"
|
||||
# external_id = "hydra-db"
|
||||
|
||||
capability {
|
||||
access_mode = "single-node-writer"
|
||||
attachment_mode = "file-system"
|
||||
}
|
||||
# capability {
|
||||
# access_mode = "single-node-writer"
|
||||
# attachment_mode = "file-system"
|
||||
# }
|
||||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/hydra-db"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
# 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 = [ "nfsvers=3", "hard", "async" ]
|
||||
}
|
||||
}
|
||||
# mount_options {
|
||||
# fs_type = "nfs"
|
||||
# mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
# }
|
||||
# }
|
||||
|
||||
resource "nomad_volume" "hydra-data" {
|
||||
type = "csi"
|
||||
plugin_id = "org.democratic-csi.nfs"
|
||||
volume_id = "hydra-data"
|
||||
name = "hydra-data"
|
||||
external_id = "hydra-data"
|
||||
# resource "nomad_volume" "hydra-data" {
|
||||
# type = "csi"
|
||||
# plugin_id = "org.democratic-csi.nfs"
|
||||
# volume_id = "hydra-data"
|
||||
# name = "hydra-data"
|
||||
# external_id = "hydra-data"
|
||||
|
||||
capability {
|
||||
access_mode = "single-node-writer"
|
||||
attachment_mode = "file-system"
|
||||
}
|
||||
# capability {
|
||||
# access_mode = "single-node-writer"
|
||||
# attachment_mode = "file-system"
|
||||
# }
|
||||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/hydra-data"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
# 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 = [ "nfsvers=3", "hard", "async" ]
|
||||
}
|
||||
}
|
||||
# mount_options {
|
||||
# fs_type = "nfs"
|
||||
# mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
# }
|
||||
# }
|
||||
|
||||
resource "nomad_volume" "hydra-nix" {
|
||||
type = "csi"
|
||||
plugin_id = "org.democratic-csi.nfs"
|
||||
volume_id = "hydra-nix"
|
||||
name = "hydra-nix"
|
||||
external_id = "hydra-nix"
|
||||
# resource "nomad_volume" "hydra-nix" {
|
||||
# type = "csi"
|
||||
# plugin_id = "org.democratic-csi.nfs"
|
||||
# volume_id = "hydra-nix"
|
||||
# name = "hydra-nix"
|
||||
# external_id = "hydra-nix"
|
||||
|
||||
capability {
|
||||
access_mode = "single-node-writer"
|
||||
attachment_mode = "file-system"
|
||||
}
|
||||
# capability {
|
||||
# access_mode = "single-node-writer"
|
||||
# attachment_mode = "file-system"
|
||||
# }
|
||||
|
||||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/hydra-nix"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
# 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 = [ "nfsvers=3", "hard", "async" ]
|
||||
}
|
||||
}
|
||||
# mount_options {
|
||||
# fs_type = "nfs"
|
||||
# mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
# }
|
||||
# }
|
||||
|
||||
resource "vault_policy" "hydra-policy" {
|
||||
name = "hydra-policy"
|
||||
policy = <<EOF
|
||||
path "kv/data/hydra" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
EOF
|
||||
}
|
||||
# resource "vault_policy" "hydra-policy" {
|
||||
# name = "hydra-policy"
|
||||
# policy = <<EOF
|
||||
# path "kv/data/hydra" {
|
||||
# capabilities = ["read"]
|
||||
# }
|
||||
# EOF
|
||||
# }
|
||||
|
||||
resource "nomad_job" "hydra" {
|
||||
jobspec = file("${path.module}/job/hydra.hcl")
|
||||
# resource "nomad_job" "hydra" {
|
||||
# jobspec = file("${path.module}/job/hydra.hcl")
|
||||
|
||||
hcl2 {
|
||||
enabled = true
|
||||
vars = {
|
||||
flake_ref = "${var.flake_host}?rev=${var.flake_rev}&ref=${var.flake_ref}"
|
||||
flake_sha = var.flake_sha
|
||||
}
|
||||
}
|
||||
}
|
||||
# hcl2 {
|
||||
# enabled = true
|
||||
# vars = {
|
||||
# flake_ref = "${var.flake_host}?rev=${var.flake_rev}&ref=${var.flake_ref}"
|
||||
# flake_sha = var.flake_sha
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
|
Loading…
Reference in a new issue