mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
~ docs: Vault Example Configuration fixes
- add `-L` to follow redirect when downloading example config files (file is linked to root, but gets redirected to _www_). - fix role name to match recommendation
This commit is contained in:
@@ -123,8 +123,8 @@ appropriate permissions.
|
||||
|
||||
```shell
|
||||
# Download the policy and role
|
||||
$ curl https://nomadproject.io/data/vault/nomad-server-policy.hcl -O -s
|
||||
$ curl https://nomadproject.io/data/vault/nomad-server-role.json -O -s
|
||||
$ curl https://nomadproject.io/data/vault/nomad-server-policy.hcl -O -s -L
|
||||
$ curl https://nomadproject.io/data/vault/nomad-server-role.json -O -s -L
|
||||
|
||||
# Write the policy to Vault
|
||||
$ vault policy-write nomad-server nomad-server-policy.hcl
|
||||
@@ -134,7 +134,7 @@ $ vault policy-write nomad-server nomad-server-policy.hcl
|
||||
$ editor nomad-server-role.json
|
||||
|
||||
# Create the role with Vault
|
||||
$ vault write /auth/token/roles/nomad @nomad-server-role.json
|
||||
$ vault write /auth/token/roles/nomad-server @nomad-server-role.json
|
||||
```
|
||||
|
||||
#### Retrieving the Role based Token
|
||||
|
||||
Reference in New Issue
Block a user