Skip to content

Commit 3f57add

Browse files
committed
add steps.txt
1 parent b35cf2c commit 3f57add

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Infra environment for deploy consul with Federation and vault integration
33
in differents environments with same deploy.
44

5+
## Steps Simplified
6+
- [./steps.txt](gcp/azure federation with vault integration)
57
## Requirements
68

79
Have some dependecies accordingly what environment are you using.

steps.txt

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Set VAULT ENVs
2+
# inside the nixShell
3+
set -x VAULT_ADDR <vault-addr>
4+
set -x VAULT_TOKEN <vault-token>
5+
# or set
6+
# set -x IC_VAULT_ADDR <vault-addr>
7+
# set -x IC_VAULT_TOKEN <vault-token>
8+
# outside the shell
9+
# and use nix develop to load shell with VAULT_* overwrited by IC_VAULT_*
10+
# configure vault with
11+
./scripts/vault-init.sh
12+
13+
# Build Image
14+
build gce
15+
# ls images/gce
16+
17+
build azure
18+
# ls images/azure
19+
20+
# config file with declaration of the infra
21+
# vim env/gcp/config.nix
22+
# vim env/azure/config.nix
23+
24+
# Provision Apply
25+
# jq . env/gcp/output.json
26+
apply gcp
27+
# jq . env/gcp/output.json
28+
29+
# jq . env/azure/output.json
30+
apply azure
31+
# jq . env/azure/output.json
32+
33+
# Deploy
34+
deploy azure
35+
deploy gcp

0 commit comments

Comments
 (0)