From 1c48fcd965fd2dccb437da200ca3f4e27296096d Mon Sep 17 00:00:00 2001 From: csawyerYumaed Date: Mon, 26 Feb 2018 12:41:39 -0800 Subject: [PATCH 1/3] Template docs, add vault PKI integration example. Update the template documentation, and add a vault PKI integration example. --- .../docs/job-specification/template.html.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/website/source/docs/job-specification/template.html.md b/website/source/docs/job-specification/template.html.md index 2e3a92275..ca7b9adea 100644 --- a/website/source/docs/job-specification/template.html.md +++ b/website/source/docs/job-specification/template.html.md @@ -223,6 +223,24 @@ will be identical to the contents of the file. For more details see [go-envparser's README](https://github.com/schmichael/go-envparse#readme). +## Vault Integration + +This example will grab a PKI certificate from Vault and put it out on local disk for your application in PEM format +including the CA, public and private key in 1 file. + +``` +template { + data = < Date: Mon, 5 Mar 2018 13:11:35 -0500 Subject: [PATCH 2/3] Incorporate review wording changes Added text from review comments per @csawyerYumaed. --- website/source/docs/job-specification/template.html.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/source/docs/job-specification/template.html.md b/website/source/docs/job-specification/template.html.md index ca7b9adea..8469a65f2 100644 --- a/website/source/docs/job-specification/template.html.md +++ b/website/source/docs/job-specification/template.html.md @@ -225,8 +225,7 @@ README](https://github.com/schmichael/go-envparse#readme). ## Vault Integration -This example will grab a PKI certificate from Vault and put it out on local disk for your application in PEM format -including the CA, public and private key in 1 file. +This example acquires a PKI certificate from Vault in PEM format and stores it into your application's secret directory. ``` template { From 4a19728007231f4c75cf19b1e35c56ef4ddb8f31 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 8 Mar 2018 10:59:56 -0800 Subject: [PATCH 3/3] Add hcl style to template block; fix interpolation Also sneak in a schmichael -> hashicorp fix in a url --- website/source/docs/job-specification/template.html.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/source/docs/job-specification/template.html.md b/website/source/docs/job-specification/template.html.md index 8469a65f2..ed494a4fc 100644 --- a/website/source/docs/job-specification/template.html.md +++ b/website/source/docs/job-specification/template.html.md @@ -221,13 +221,13 @@ The parser will read the JSON string, so the `$CERT_PEM` environment variable will be identical to the contents of the file. For more details see [go-envparser's -README](https://github.com/schmichael/go-envparse#readme). +README](https://github.com/hashicorp/go-envparse#readme). ## Vault Integration This example acquires a PKI certificate from Vault in PEM format and stores it into your application's secret directory. -``` +```hcl template { data = <