mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 09:36:14 +01:00
5d38fe62c9
Signed-off-by: main <magic_rb@redalder.org>
35 lines
692 B
HCL
35 lines
692 B
HCL
resource "nomad_volume" "conduit-data" {
|
|
type = "csi"
|
|
plugin_id = "nfs"
|
|
volume_id = "conduit-data"
|
|
name = "conduit-data"
|
|
external_id = "conduit-data"
|
|
|
|
capability {
|
|
access_mode = "single-node-writer"
|
|
attachment_mode = "file-system"
|
|
}
|
|
|
|
context = {
|
|
server = "blowhole.hosts.in.redalder.org"
|
|
share = "/var/nfs/conduit-data"
|
|
}
|
|
|
|
mount_options {
|
|
fs_type = "nfs"
|
|
mount_flags = [ "nolock", "hard" ]
|
|
}
|
|
}
|
|
|
|
resource "nomad_job" "conduit" {
|
|
jobspec = file("${path.module}/job/conduit.hcl")
|
|
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
flake_ref = "${var.flake_host_alt}?rev=${var.flake_rev}"
|
|
flake_sha = var.flake_sha
|
|
}
|
|
}
|
|
}
|