-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurs on the task: Vault main configuration #333
Comments
Your playbook needs to run for the inventory group |
@FalcoSuessgott |
Because per default this role deploys an vault cluster with raft / integrated storage. You can specify other backends such as etcd or mysql but raft is the common used one. |
@FalcoSuessgott
And, accordingly, vault_raft_group_name should point to a group in the hosts file? |
[vault-infra]
vault1-infrastructure ansible_host=ip-address ansible_port=22
vault2-infrastructure ansible_host=ip-address ansible_port=22
vault3-infrastructure ansible_host=ip-address ansible_port=22
[vault-infra:vars]
vault_raft_group_name=vault-infra should do the trick :) |
@FalcoSuessgott
And I can’t see the status on more than one host:
|
This is the normal behaviour, Vault is sealed. Which means you have to unseal the node first using UI, CLI or API. I suggest you read through https://developer.hashicorp.com/vault/docs/concepts/seal. You will have to unseal one node, save the unseal keys and root token file. go to every other node and unseal them using the keys from the first node. of course you can automate that task or even use Vaults auto unseal mechanism. |
playbook launch:
ansible-playbook -i inventory/infrastructure/hosts playbooks/all.yml --limit vault --tags vault-community
How can this error be fixed?
The text was updated successfully, but these errors were encountered: