File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 2
2
Infra environment for deploy consul with Federation and vault integration
3
3
in differents environments with same deploy.
4
4
5
+ ## Steps Simplified
6
+ - [ ./steps.txt] (gcp/azure federation with vault integration)
5
7
## Requirements
6
8
7
9
Have some dependecies accordingly what environment are you using.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments