mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-21 15:54:21 +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" {
|
# resource "nomad_volume" "hydra-db" {
|
||||||
type = "csi"
|
# type = "csi"
|
||||||
plugin_id = "org.democratic-csi.nfs"
|
# plugin_id = "org.democratic-csi.nfs"
|
||||||
volume_id = "hydra-db"
|
# volume_id = "hydra-db"
|
||||||
name = "hydra-db"
|
# name = "hydra-db"
|
||||||
external_id = "hydra-db"
|
# external_id = "hydra-db"
|
||||||
|
|
||||||
capability {
|
# capability {
|
||||||
access_mode = "single-node-writer"
|
# access_mode = "single-node-writer"
|
||||||
attachment_mode = "file-system"
|
# attachment_mode = "file-system"
|
||||||
}
|
# }
|
||||||
|
|
||||||
context = {
|
# context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
# server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/hydra-db"
|
# share = "/var/nfs/hydra-db"
|
||||||
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 = [ "nfsvers=3", "hard", "async" ]
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "nomad_volume" "hydra-data" {
|
# resource "nomad_volume" "hydra-data" {
|
||||||
type = "csi"
|
# type = "csi"
|
||||||
plugin_id = "org.democratic-csi.nfs"
|
# plugin_id = "org.democratic-csi.nfs"
|
||||||
volume_id = "hydra-data"
|
# volume_id = "hydra-data"
|
||||||
name = "hydra-data"
|
# name = "hydra-data"
|
||||||
external_id = "hydra-data"
|
# external_id = "hydra-data"
|
||||||
|
|
||||||
capability {
|
# capability {
|
||||||
access_mode = "single-node-writer"
|
# access_mode = "single-node-writer"
|
||||||
attachment_mode = "file-system"
|
# attachment_mode = "file-system"
|
||||||
}
|
# }
|
||||||
|
|
||||||
context = {
|
# context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
# server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/hydra-data"
|
# share = "/var/nfs/hydra-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 = [ "nfsvers=3", "hard", "async" ]
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "nomad_volume" "hydra-nix" {
|
# resource "nomad_volume" "hydra-nix" {
|
||||||
type = "csi"
|
# type = "csi"
|
||||||
plugin_id = "org.democratic-csi.nfs"
|
# plugin_id = "org.democratic-csi.nfs"
|
||||||
volume_id = "hydra-nix"
|
# volume_id = "hydra-nix"
|
||||||
name = "hydra-nix"
|
# name = "hydra-nix"
|
||||||
external_id = "hydra-nix"
|
# external_id = "hydra-nix"
|
||||||
|
|
||||||
capability {
|
# capability {
|
||||||
access_mode = "single-node-writer"
|
# access_mode = "single-node-writer"
|
||||||
attachment_mode = "file-system"
|
# attachment_mode = "file-system"
|
||||||
}
|
# }
|
||||||
|
|
||||||
context = {
|
# context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
# server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/hydra-nix"
|
# share = "/var/nfs/hydra-nix"
|
||||||
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 = [ "nfsvers=3", "hard", "async" ]
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "vault_policy" "hydra-policy" {
|
# resource "vault_policy" "hydra-policy" {
|
||||||
name = "hydra-policy"
|
# name = "hydra-policy"
|
||||||
policy = <<EOF
|
# policy = <<EOF
|
||||||
path "kv/data/hydra" {
|
# path "kv/data/hydra" {
|
||||||
capabilities = ["read"]
|
# capabilities = ["read"]
|
||||||
}
|
# }
|
||||||
EOF
|
# EOF
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "nomad_job" "hydra" {
|
# resource "nomad_job" "hydra" {
|
||||||
jobspec = file("${path.module}/job/hydra.hcl")
|
# jobspec = file("${path.module}/job/hydra.hcl")
|
||||||
|
|
||||||
hcl2 {
|
# hcl2 {
|
||||||
enabled = true
|
# enabled = true
|
||||||
vars = {
|
# vars = {
|
||||||
flake_ref = "${var.flake_host}?rev=${var.flake_rev}&ref=${var.flake_ref}"
|
# flake_ref = "${var.flake_host}?rev=${var.flake_rev}&ref=${var.flake_ref}"
|
||||||
flake_sha = var.flake_sha
|
# flake_sha = var.flake_sha
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
Loading…
Reference in a new issue