Add template example to init command

This commit is contained in:
Seth Vargo 2016-10-30 21:19:19 -04:00
parent d059531ab2
commit cf000c2621
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 17 additions and 1 deletions

View File

@ -168,7 +168,7 @@ job "example" {
}
}
# The artifact block can be specified one or more times to download
# The artifact stanza can be specified one or more times to download
# artifacts prior to the task being started. This is convenient for
# shipping configs or data needed by the task.
# artifact {
@ -178,6 +178,22 @@ job "example" {
# }
# }
# The "template" stanza instructs Nomad to manage a template, such as
# a configuration file or script. This template can optionally pull data
# from Consul or Vault to populate runtime configuration data.
#
# For more information and examples on the "template" stanza, please see
# the online documentation at:
#
# https://www.nomadproject.io/docs/job-specification/template.html
#
# template {
# data = "---\nkey: {{ key \"service/my-key\" }}"
# destination = "local/file.yml"
# change_mode = "signal"
# change_signal = "SIGHUP"
# }
# Specify configuration related to log rotation
# logs {
# max_files = 10