https://github.com/grove-mountain/vault_essential_patterns_blog
Code examples used for the Essential Patterns of Vault -- Pt 2 blog post
https://github.com/grove-mountain/vault_essential_patterns_blog
Last synced: 4 months ago
JSON representation
Code examples used for the Essential Patterns of Vault -- Pt 2 blog post
- Host: GitHub
- URL: https://github.com/grove-mountain/vault_essential_patterns_blog
- Owner: grove-mountain
- Created: 2019-06-25T03:56:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-04T21:57:07.000Z (over 5 years ago)
- Last Synced: 2024-08-13T07:16:05.521Z (8 months ago)
- Language: Shell
- Size: 38.1 KB
- Stars: 16
- Watchers: 1
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - grove-mountain/vault_essential_patterns_blog - Code examples used for the Essential Patterns of Vault -- Pt 2 blog post (Shell)
README
# vault_essential_patterns_blog
Code examples used for the Essential Patterns of Vault -- Pt 2 blog postThis can be run either on a Mac or in Vagrant directly. Feel free to port to whatever OS you'd like to run in.
It's good to run in two windows with one running the Vault dev server and the other to run the commands.
## Mac Based
This was developed on a Mac with the following requirements installed:- [Vault](https://www.vaultproject.io/downloads.html)
- [Docker](https://hub.docker.com/search/?type=edition&offering=community)
- [Postgres image](https://hub.docker.com/_/postgres)
- Custom OpenLDAP image - git clone https://github.com/grove-mountain/docker-ldap-server.git
- [jq](https://stedolan.github.io/jq/)The scripts will automatically download the required Docker containers, so you don't need to do that upfront.
## Vagrant based
If you're not on a Mac, you can also run this via Vagrant with the following requirements:
- [Vagrant](https://www.vagrantup.com/downloads.html)
- Virtual Machine software of Choice that Vagrant supports### Start commands
```
vagrant up
vagrant ssh
cd /vagrant
```## Run the demo
### First window
```
./0_launch_vault.sh
```### Second window
This will run all the scripts in order. Be sure to hit after each command to go to the next one.
```
./run_all.sh
```Alternatively you can run each numbered file in succession and then each test file in whichever order you please, but the suggested order is:
```
./test_it.sh
./test_engineering.sh
./test_hr.sh
```Finish with:
```
./shutdown.sh
```