You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-dev-root-token-id=master is hardcoded in vault.service.j2 and this means that overriding the default value for vault_master_token which is "master" does not end up in a successful run.
Overriding vault_master_token should work seamlessly.
How to reproduce?
Override the default value for vault_master_token, by adding it to the .env file, for example:
vault_master_token=testmaster
Run make dev
Errors out:
STDERR:
Error: Error making API request.
URL: GET http://127.0.0.1:8200/v1/auth/token/lookup-self
Code: 403. Errors:
* permission denied
on main.tf line 2, in provider "vault":
2: provider "vault" {
@fredrikhgrelland: Is this relevant? Does the solution sound good to you? Maybe you would like to have a better approach than what suggested so please write down your thoughts so can fix it today.
Current behaviour
-dev-root-token-id=master is hardcoded in vault.service.j2 and this means that overriding the default value for vault_master_token which is "master" does not end up in a successful run.
https://github.com/fredrikhgrelland/vagrant-hashistack/blob/c6c2c0d9f71cf29a13c2e28c62ee97f1ebe0500a/ansible/templates/vault.service.j2#L8
Expected behaviour
Overriding vault_master_token should work seamlessly.
How to reproduce?
Override the default value for vault_master_token, by adding it to the .env file, for example:
Run
make dev
Errors out:
Suggestion(s)/solution(s) [Optional]
Move ansible task Install systemd unit files hashistack from install.yml to 1-config.yml
Change the command in vault.service.j2 :
to
Checklist (after created issue)
Note: We might need a patch release so have not set the milestone yet.
The text was updated successfully, but these errors were encountered: