Merge pull request #2899 from hashicorp/d-mention-env-in-init

Mention env templates in nomad init
This commit is contained in:
Michael Schurter
2017-07-26 11:17:47 -07:00
committed by GitHub
3 changed files with 29 additions and 0 deletions

View File

@@ -337,6 +337,16 @@ job "example" {
# change_signal = "SIGHUP"
# }
# The "template" stanza can also be used to create environment variables
# for tasks that prefer those to config files. The task will be restarted
# when data pulled from Consul or Vault changes.
#
# template {
# data = "KEY={{ key \"service/my-key\" }}"
# destination = "local/file.env"
# env = true
# }
# The "vault" stanza instructs the Nomad client to acquire a token from
# a HashiCorp Vault server. The Nomad servers must be configured and
# authorized to communicate with Vault. By default, Nomad will inject