Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
f49912cb
Commit
f49912cb
authored
8 years ago
by
Alex Dadgar
Browse files
Options
Download
Email Patches
Plain Diff
alphabetical
parent
98c17e51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
website/source/docs/job-specification/artifact.html.md
+4
-4
website/source/docs/job-specification/artifact.html.md
website/source/docs/job-specification/template.html.md
+11
-11
website/source/docs/job-specification/template.html.md
with
15 additions
and
15 deletions
+15
-15
website/source/docs/job-specification/artifact.html.md
+
4
-
4
View file @
f49912cb
...
...
@@ -51,15 +51,15 @@ before the starting the task.
default value is to place the binary in
`local/`
. The destination is treated
as a directory and source files will be downloaded into that directory path.
-
`source`
`(string: <required>)`
- Specifies the URL of the artifact to download.
Only
`http`
,
`https`
, and
`s3`
URLs are supported. See
[
`go-getter`
][
go-getter
]
for details.
-
`options`
`(map<string|string>: nil)`
- Specifies configuration parameters to
fetch the artifact. The key-value pairs map directly to parameters appended to
the supplied
`source`
URL. Please see the
[
`go-getter`
documentation
][
go-getter
]
for a complete list of options and examples
-
`source`
`(string: <required>)`
- Specifies the URL of the artifact to download.
Only
`http`
,
`https`
, and
`s3`
URLs are supported. See
[
`go-getter`
][
go-getter
]
for details.
## `artifact` Examples
The following examples only show the
`artifact`
stanzas. Remember that the
...
...
This diff is collapsed.
Click to expand it.
website/source/docs/job-specification/template.html.md
+
11
-
11
View file @
f49912cb
...
...
@@ -47,19 +47,17 @@ README][ct].
## `template` Parameters
-
`source`
`(string: "")`
- Specifies the path to the template to be rendered.
One of
`source`
or
`data`
must be specified, but not both. This source can
optionally be fetched using an
[
`artifact`
][
artifact
]
resource. This template
must exist on the machine prior to starting the task; it is not possible to
reference a template inside of a Docker container, for example.
-
`destination`
`(string: <required>)`
- Specifies the location where the
resulting template should be rendered, relative to the task directory.
-
`change_signal`
`(string: "")`
- Specifies the signal to send to the task as a
string like
`"SIGUSR1"`
or
`"SIGINT"`
. This option is required if the
`change_mode`
is
`signal`
.
-
`data`
`(string: "")`
- Specifies the raw template to execute. One of
`source`
or
`data`
must be specified, but not both. This is useful for smaller
templates, but we recommend using
`source`
for larger templates.
-
`destination`
`(string: <required>)`
- Specifies the location where the
resulting template should be rendered, relative to the task directory.
-
`change_mode`
`(string: "restart")`
- Specifies the behavior Nomad should take
if the rendered template changes. The possible values are:
...
...
@@ -67,9 +65,11 @@ README][ct].
-
`"restart"`
- restart the task
-
`"signal"`
- send a configurable signal to the task
-
`change_signal`
`(string: "")`
- Specifies the signal to send to the task as a
string like
`"SIGUSR1"`
or
`"SIGINT"`
. This option is required if the
`change_mode`
is
`signal`
.
-
`source`
`(string: "")`
- Specifies the path to the template to be rendered.
One of
`source`
or
`data`
must be specified, but not both. This source can
optionally be fetched using an
[
`artifact`
][
artifact
]
resource. This template
must exist on the machine prior to starting the task; it is not possible to
reference a template inside of a Docker container, for example.
-
`splay`
`(string: "5s")`
- Specifies a random amount of time to wait between
0ms and the given splay value before invoking the change mode. This is
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment