mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 01:26:14 +01:00
6835af938c
Signed-off-by: main <magic_rb@redalder.org>
25 lines
412 B
HCL
25 lines
412 B
HCL
variable "flake_ref" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_sha" {
|
|
type = string
|
|
}
|
|
|
|
# data "nomad_plugin" "nomad-driver-containerd" {
|
|
# plugin_id = "nomad-driver-containerd"
|
|
# wait_for_healthy = true
|
|
# }
|
|
|
|
resource "nomad_job" "website" {
|
|
jobspec = file("${path.module}/nomad.hcl")
|
|
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
flake_ref = var.flake_ref
|
|
flake_sha = var.flake_sha
|
|
}
|
|
}
|
|
}
|