From 0a003c39b1e254e80f04061fa04ca010d51bc5e4 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 12 May 2022 19:27:52 -0700 Subject: [PATCH] WIP: Vault db --- nomad/acls/nomad_vault_db.tf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nomad/acls/nomad_vault_db.tf diff --git a/nomad/acls/nomad_vault_db.tf b/nomad/acls/nomad_vault_db.tf new file mode 100644 index 0000000..9d1107a --- /dev/null +++ b/nomad/acls/nomad_vault_db.tf @@ -0,0 +1,17 @@ +# resource "vault_mount" "db" { +# path = "database" +# type = "database" +# } +# +# resource "vault_database_secret_backend_connection" "mysql" { +# backend = vault_mount.db.path +# name = "mysql" +# allowed_roles = ["accessdb"] +# +# mysql { +# # How to give access here? +# connection_url = "{{username}}:{{password}}@tcp(localhost:3306)" +# username = "" +# password = "" +# } +# }