diff --git a/nomad/acls/consul_vault.tf b/nomad/acls/consul_vault.tf new file mode 100644 index 0000000..79e8101 --- /dev/null +++ b/nomad/acls/consul_vault.tf @@ -0,0 +1,23 @@ +resource "vault_consul_secret_backend" "config" { + path = "consul" + description = "Manages the Consul backend" + + address = "http://127.0.0.1:8500" + token = var.consul_token +} + +resource "consul_acl_policy" "server_policy" { + name = "consul-servers" + rules = <