mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-28 11:06:15 +01:00
5ed9ee1903
Signed-off-by: Magic_RB <magic_rb@redalder.org>
21 lines
407 B
HCL
21 lines
407 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}&ref=${var.flake_ref}"
|
|
flake_sha = var.flake_sha
|
|
}
|
|
}
|
|
}
|