diff --git a/website/pages/docs/job-specification/template.mdx b/website/pages/docs/job-specification/template.mdx index 7f174fdb7..d3086b75d 100644 --- a/website/pages/docs/job-specification/template.mdx +++ b/website/pages/docs/job-specification/template.mdx @@ -68,6 +68,10 @@ README][ct]. Since Nomad v0.6.0, templates can be read as environment variables. - `env` `(bool: false)` - Specifies the template should be read back in as environment variables for the task. ([See below](#environment-variables)) + Note that if `noop` mode is used for the `change_mode`, the task will not be + restarted and the environment variables wwon't be changed in the task. If + you set `env = true`, then the `change_mode` should be one of `restart` or + `signal`. - `left_delimiter` `(string: "{{")` - Specifies the left delimiter to use in the template. The default is "{{" for some templates, it may be easier to use a @@ -347,6 +351,18 @@ raw key/value data. This secret was set using } ``` +Note that if the name of a secret includes the `-` character, you must access +it by index. This secret was set using `vault kv put secret/app +db-password=somepassword`. + +```hcl + template { + data = <