2017-01-20 18:33:52 +00:00
|
|
|
job "parameterized_job" {
|
2017-01-20 20:46:04 +00:00
|
|
|
parameterized {
|
2016-12-14 20:50:08 +00:00
|
|
|
payload = "required"
|
2016-11-23 23:48:36 +00:00
|
|
|
meta_keys {
|
|
|
|
required = ["foo", "bar"]
|
|
|
|
optional = ["baz", "bam"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
group "foo" {
|
|
|
|
task "bar" {
|
|
|
|
driver = "docker"
|
|
|
|
resources {}
|
|
|
|
|
|
|
|
dispatch_input {
|
|
|
|
file = "foo/bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|