From fc994b2268ac134b470110ab54cd2c92d9e65d4e Mon Sep 17 00:00:00 2001 From: Chris Baker Date: Thu, 31 Jan 2019 15:15:00 +0000 Subject: [PATCH 1/3] fixed some affinity examples --- website/source/docs/job-specification/affinity.html.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/source/docs/job-specification/affinity.html.md b/website/source/docs/job-specification/affinity.html.md index 61419ea8b..d691b38eb 100644 --- a/website/source/docs/job-specification/affinity.html.md +++ b/website/source/docs/job-specification/affinity.html.md @@ -40,7 +40,7 @@ job "docs" { group "example" { # Prefer the "r1" rack affinity { - operator = "${meta.rack}" + attribute = "${meta.rack}" value = "r1" weight = 50 } @@ -186,8 +186,8 @@ higher than "3.19". ```hcl affinity { attribute = "${attr.kernel.version}" - operator = "version" - value = "> 3.19" + operator = ">" + value = "3.19" weight = 50 } ``` From edcee2d3bb0806ba8f85fa4f9ebce84e0edfec1e Mon Sep 17 00:00:00 2001 From: Chris Baker Date: Thu, 31 Jan 2019 16:00:54 +0000 Subject: [PATCH 2/3] fixed typo in vault integration documentation --- website/source/docs/job-specification/vault.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/job-specification/vault.html.md b/website/source/docs/job-specification/vault.html.md index c4543763e..f99f1c7fa 100644 --- a/website/source/docs/job-specification/vault.html.md +++ b/website/source/docs/job-specification/vault.html.md @@ -47,7 +47,7 @@ job "docs" { ``` The Nomad client will make the Vault token available to the task by writing it -to the secret directory at `secret/vault_token` and by injecting a VAULT_TOKEN +to the secret directory at `secrets/vault_token` and by injecting a VAULT_TOKEN environment variable. If Nomad is unable to renew the Vault token (perhaps due to a Vault outage or From 075635bafc29677388274fd9e78f7ff404fad276 Mon Sep 17 00:00:00 2001 From: Chris Baker Date: Wed, 6 Feb 2019 19:13:40 +0000 Subject: [PATCH 3/3] restored previous example (it was correct) --- website/source/docs/job-specification/affinity.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/job-specification/affinity.html.md b/website/source/docs/job-specification/affinity.html.md index d691b38eb..8e6e516dc 100644 --- a/website/source/docs/job-specification/affinity.html.md +++ b/website/source/docs/job-specification/affinity.html.md @@ -186,8 +186,8 @@ higher than "3.19". ```hcl affinity { attribute = "${attr.kernel.version}" - operator = ">" - value = "3.19" + operator = "version" + value = "> 3.19" weight = 50 } ```