mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Add example of env vars in templates
This commit is contained in:
@@ -97,7 +97,8 @@ It is also possible to use heredocs for multi-line templates, like:
|
||||
template {
|
||||
data = <<EOH
|
||||
---
|
||||
key: {{ key "service/my-key" }}
|
||||
id: {{ env "NOMAD_ALLOC_ID" }}-{{ env "NOMAD_ALLOC_INDEX" }}
|
||||
service_key: {{ key "service/my-key" }}
|
||||
EOH
|
||||
|
||||
destination = "local/file.yml"
|
||||
|
||||
Reference in New Issue
Block a user