fix old arch

This commit is contained in:
Alex Dadgar
2017-05-01 17:36:20 -07:00
parent 9dc002a9b3
commit 93d7626ac5
2 changed files with 4 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ will restrict the tasks to 64-bit operating systems.
```hcl
group "example" {
constraint {
attribute = "${attr.arch}"
attribute = "${attr.cpu.arch}"
value = "amd64"
}

View File

@@ -94,7 +94,7 @@ driver.
<tr>
<td><tt>${attr.&lt;property&gt;}</tt></td>
<td>Property given by <tt>property</tt> on the client</td>
<td><tt>${attr.arch} => amd64</tt></td>
<td><tt>${attr.cpu.arch} => amd64</tt></td>
</tr>
<tr>
<td><tt>${meta.&lt;key&gt;}</tt></td>
@@ -111,7 +111,7 @@ Below is a table documenting common node properties:
<th>Description</th>
</tr>
<tr>
<td><tt>${attr.arch}</tt></td>
<td><tt>${attr.cpu.arch}</tt></td>
<td>CPU architecture of the client (e.g. <tt>amd64</tt>, <tt>386</tt>)</td>
</tr>
<tr>
@@ -166,7 +166,7 @@ Here are some examples of using node attributes and properties in a job file:
job "docs" {
# This will constrain this job to only run on 64-bit clients.
constraint {
attribute = "${attr.arch}"
attribute = "${attr.cpu.arch}"
value = "amd64"
}