Skip to content

Commit 4a19728

Browse files
authored
Add hcl style to template block; fix interpolation
Also sneak in a schmichael -> hashicorp fix in a url
1 parent beeff5e commit 4a19728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/source/docs/job-specification/template.html.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,21 +221,21 @@ The parser will read the JSON string, so the `$CERT_PEM` environment variable
221221
will be identical to the contents of the file.
222222

223223
For more details see [go-envparser's
224-
README](https://github.com/schmichael/go-envparse#readme).
224+
README](https://github.com/hashicorp/go-envparse#readme).
225225

226226
## Vault Integration
227227

228228
This example acquires a PKI certificate from Vault in PEM format and stores it into your application's secret directory.
229229

230-
```
230+
```hcl
231231
template {
232232
data = <<EOH
233233
{{ with secret "pki/issue/foo" "common_name=foo.service.consul" "ip_sans=127.0.0.1" "format=pem" }}
234234
{{ .Data.certificate }}
235235
{{ .Data.issuing_ca }}
236236
{{ .Data.private_key }}{{ end }}
237237
EOH
238-
destination = "$${NOMAD_SECRETS_DIR}/bundle.pem"
238+
destination = "${NOMAD_SECRETS_DIR}/bundle.pem"
239239
change_mode = "restart"
240240
}
241241
```

0 commit comments

Comments
 (0)