cluster/nomad/regions/homelab-1/camptules.tf
main 2e61e7ef3c
Reorganization and better Terraform
Signed-off-by: main <magic_rb@redalder.org>
2022-07-30 23:27:40 +02:00

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
}
}
}