Skip to content

Commit

Permalink
vault docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Jul 21, 2020
1 parent 9c75af1 commit 3d287a7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions website/pages/docs/job-specification/vault.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ with Vault as well.
- `env` `(bool: true)` - Specifies if the `VAULT_TOKEN` and `VAULT_NAMESPACE`
environment variables should be set when starting the task.

- `namespace` `(string: "")` <EnterpriseAlert inline/> - Specifies the Vault Namespace
to use for the task. The Nomad client will retrieve a Vault token that is scoped to
this particular namespace.

- `policies` `(array<string>: [])` - Specifies the set of Vault policies that
the task requires. The Nomad client will retrieve a Vault token that is
limited to those policies.
Expand Down Expand Up @@ -106,6 +110,22 @@ vault {
}
```

### Vault Namespace

This example shows specifying a particular Vault namespace for a given task.

<EnterpriseAlert />

```hcl
vault {
policies = ["frontend"]
namespace = "engineering/frontend"
change_mode = "signal"
change_signal = "SIGINT"
}
```

[restart]: /docs/job-specification/restart 'Nomad restart Job Specification'
[template]: /docs/job-specification/template 'Nomad template Job Specification'
[vault]: https://www.vaultproject.io/ 'Vault by HashiCorp'

0 comments on commit 3d287a7

Please sign in to comment.