mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-29 11:36:16 +01:00
2e61e7ef3c
Signed-off-by: main <magic_rb@redalder.org>
21 lines
386 B
HCL
21 lines
386 B
HCL
resource "vault_policy" "camputules-policy" {
|
|
name = "camptules-policy"
|
|
policy = <<EOF
|
|
path "kv/data/camptules" {
|
|
capabilities = ["read"]
|
|
}
|
|
EOF
|
|
}
|
|
|
|
resource "nomad_job" "camptules" {
|
|
jobspec = file("${path.module}/job/camptules.hcl")
|
|
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
flake_ref = "${var.flake_host}?rev=${var.flake_rev}"
|
|
flake_sha = var.flake_sha
|
|
}
|
|
}
|
|
}
|