Commit Graph

40 Commits

Author SHA1 Message Date
Michael Schurter
4a19728007 Add hcl style to template block; fix interpolation
Also sneak in a schmichael -> hashicorp fix in a url
2018-03-08 10:59:56 -08:00
Charlie Voiselle
beeff5e4f2 Incorporate review wording changes
Added text from review comments per @csawyerYumaed.
2018-03-05 13:11:35 -05:00
csawyerYumaed
1c48fcd965 Template docs, add vault PKI integration example.
Update the template documentation, and add a vault PKI integration example.
2018-02-26 12:41:39 -08:00
James Rasell
7cd1f55a3b Update template.html.md Vault template example
The change updates the Vault example within the Environment Variables section to use the `.value` notation rather than the `.key` notation. This is because the example is calling a specific secret key and populating an env var with this; meaning the value of the secret is required over the value.
2017-12-13 10:40:22 +00:00
Alex Dadgar
f5c0c4e7cc fix vault grace docs 2017-11-13 09:59:20 -08:00
Alex Dadgar
ae1883e2ae vault_grace doc 2017-10-13 10:15:44 -07:00
Alex Dadgar
040c35f186 documentation 2017-10-11 17:48:18 -07:00
Alex Dadgar
053cff812a Allow template to set Vault grace
This PR allows a template to specify the Vault grace duration.

Fixes https://github.com/hashicorp/nomad/issues/2922
2017-08-01 14:14:08 -07:00
Michael Schurter
93c2696df5 Merge pull request #2898 from hashicorp/d-config-tasks-env
Mention templates & env vars in configuring tasks
2017-07-25 16:54:55 -07:00
Michael Schurter
df6172a888 Mention node attrs 2017-07-25 16:53:10 -07:00
Michael Schurter
5f4d17671a Write secrets to secrets! 2017-07-25 09:51:11 -07:00
Michael Schurter
41e550d176 Use better example for env template 2017-07-24 16:40:39 -07:00
Charlie Voiselle
77c6f32243 Spellcheck sweep of website directory
Caught some typos.  Made units separate from the numbers 1GHz -> 1 GHz
after talking to Nick about questions of style (this has the side effect of making future spell checking easier).
2017-07-17 14:41:50 -04:00
Michael Schurter
f9176492e3 Update template docs to mention json encoding newlines 2017-06-02 15:08:08 -07:00
Seth Vargo
4d144e404f Cleanup links to limit redirects 2017-05-30 20:25:11 -04:00
Michael Schurter
aac319cd16 Merge pull request #2654 from hashicorp/f-env-consul
Add envconsul-like support and refactor environment handling
2017-05-30 14:40:14 -07:00
Michael Schurter
43cc0a08a9 Minor wording updates 2017-05-24 13:55:21 -07:00
Alex Dadgar
28b256f6d8 Update template.html.md 2017-05-24 09:54:22 -07:00
Michael Schurter
826aec455f Document env templates 2017-05-23 17:25:21 -07:00
Alex Dadgar
9a4f8a6de6 better change_mode explanation for templates 2017-05-03 12:40:27 -07:00
Alex Dadgar
63978511be Access Node Meta and Attrs in template
This PR allows accessing the Node's attributes and metadata as in a
template.

```
template {
    data = "{{ env \"attr.unique.network.ip-address\" }}"
    destination = "local/out"
}
```
2017-03-27 15:15:33 -07:00
Christian Winther
7aed171038 Fix #2445
Close #2445 - typo in docs
2017-03-14 10:12:48 +01:00
Alex Dadgar
ee76b78922 rebase 2017-02-20 16:43:28 -08:00
Alex Dadgar
be67eb3dcb Grammar fix 2017-02-02 11:28:04 -08:00
Alex Dadgar
9afa48310e Template destination file permissions.
This PR allows setting the file permissions of the rendered template.
2017-01-31 20:10:01 -08:00
Alex Dadgar
f49912cbab alphabetical 2017-01-25 21:27:44 -08:00
Alex Dadgar
60707215cf Update template json docs 2017-01-24 09:12:42 -08:00
Michael Schurter
8903dbecae Try to use more useful example env vars 2017-01-23 17:02:23 -08:00
Michael Schurter
0a99fcb43f Mention nomad's runtime environment being available now 2017-01-23 15:54:56 -08:00
Michael Schurter
9fdc2691ac Add example of env vars in templates 2017-01-23 15:50:38 -08:00
Bastiaan Bakker
d0d4efd0a2 s/Vault token/rendered template/ 2016-11-14 21:59:42 +01:00
Alex Dadgar
c78546cdc1 Merge pull request #1921 from hashicorp/f-abs-templ
Allow absolute paths for template sources
2016-11-07 12:28:49 -08:00
Seth Vargo
c86a07d834 Separate agent configuration into its own pages
I apologize in advance for the rather long PR, but unfortunately there
is not an easy way to break this up into smaller chunks. This separates
the agent configuration into smaller, more consumable pieces just like
the job specification.
2016-11-02 18:30:00 -04:00
Alex Dadgar
e2da0b9dec Allow absolute paths for template sources 2016-11-02 13:04:47 -07:00
Jussi Kalliokoski
b43e9864c1 Fixed a grammar mistake in template docs. 2016-11-01 16:17:21 +02:00
Seth Vargo
93299e96d7 Specify restart policy is not the same as restart behavior 2016-10-31 16:53:18 -04:00
Seth Vargo
eecc86cc06 Add multiline string template example 2016-10-31 16:53:17 -04:00
Seth Vargo
665fccb1b7 Fix multiline 2016-10-31 16:53:17 -04:00
Seth Vargo
6e5f1603e1 Clarify templates must pre-exist and cannot come from the container 2016-10-31 16:52:57 -04:00
Seth Vargo
9fa96d19f6 Add template example 2016-10-31 16:52:55 -04:00