- Install and configuring Docker (for provision with docker)
- Install and configuring Jenkins (for provision with ansible and jenkins)
- Download this project
- Go to project path on terminal and run
docker build -t ilegra/vault .
- Run docker vault image
docker run --rm -p 8200:8200 --name=vault ilegra/vault
-
Start Jenkins, go to http://localhost:8282/, install suggested plugins and create a root user
-
Go to Dashboard -> Manage Jenkins -> Manage Credentials -> Global Credentials
- Create a secret text named vault-version with value 1.13.1 or another
-
Go to Dashboard -> Manage Jenkins -> Manage Plugins -> Available plugins and install Ansible
- Go to Dashboard -> New Item -> Pipeline and name it as Provisioning_Vault
- Pipeline config:
- Definition: Pipeline script from SCM
- SCM: Git
- Repository URL: https://github.com/Gabriely-get/provisioning-vault.git
- Branch Specifier: */main
- Script Path: resources/Jenkinsfile
- Save it and Run the pipeline. While pipeline run, vault will be available. Only stops manually.
- access: http://127.0.0.1:8200/
- Unseal Vault to be allowed to use
- Key shares: Quantity of keys that will be generated. Suggested: 7
- Key threshold: Quantity of keys that will be necessary to unseal. Suggested: 3
- Initialize and save all the given keys and the initial token
- Continue and paste three times, three keys from the 7 gived
- Continue and place the Token with the root_token saved before
- Now Vault is ready to use!