Skip to content

Commit

Permalink
Fix confusing batch job example
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Aug 25, 2017
1 parent a07ba08 commit 1b8eb39
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions website/source/docs/job-specification/job.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ job "docs" {

### Batch Job

This example job executes the `uptime` command across all Nomad clients in the
fleet, as long as those machines are running Linux.
This example job executes the `uptime` command on 10 Nomad clients in the fleet,
restricting the eligble nodes to Linux machines.

```hcl
job "docs" {
Expand All @@ -163,15 +163,12 @@ job "docs" {
}
group "example" {
count = 10
task "uptime" {
driver = "exec"
config {
command = "uptime"
}
resources {
cpu = 20
}
}
}
}
Expand Down Expand Up @@ -204,10 +201,6 @@ job "docs" {
vault {
policies = ["secret-readonly"]
}
resources {
cpu = 20
}
}
}
}
Expand Down

0 comments on commit 1b8eb39

Please sign in to comment.