From 06b03056c23fe48199e1107f008b44bd03f2f6b5 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 27 Mar 2017 11:26:18 -0700 Subject: [PATCH] more verbose documentation on role based vault integration --- .../source/docs/vault-integration/index.html.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/source/docs/vault-integration/index.html.md b/website/source/docs/vault-integration/index.html.md index 6b04d6914..72e33198a 100644 --- a/website/source/docs/vault-integration/index.html.md +++ b/website/source/docs/vault-integration/index.html.md @@ -243,6 +243,21 @@ as a command-line flag, or via an environment variable. $ VAULT_TOKEN=f02f01c2-c0d1-7cb7-6b88-8a14fada58c0 nomad agent -config /path/to/config ``` +An example of what may be contained in the configuration is shown below. For +complete documentation please see the [Nomad agent Vault integration][config] +configuration. + +```hcl +vault { + enabled = true + ca_path = "/etc/certs/ca" + cert_file = "/var/certs/vault.crt" + key_file = "/var/certs/vault.key" + address = "https://vault.service.consul:8200" + create_from_role = "nomad-cluster" +} +``` + ## Agent Configuration To enable Vault integration, please see the [Nomad agent Vault