]> apps.delaporte.us Git - dotfiles.git/commitdiff
Added setup for running a local copy of Consul and Vault
authorEdward Delaporte <delaport@illinois.edu>
Fri, 20 Dec 2019 20:55:08 +0000 (14:55 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Fri, 20 Dec 2019 20:55:08 +0000 (14:55 -0600)
Microsoft.PowerShell_profile.ps1
bootstrap.ps1
vaultconfig.hcl [new file with mode: 0644]

index a517edbd88fcd4e69a4473be63ef95b0632a5847..1a4cdb218df81b0d6cb4cd3c72cb040911243e85 100644 (file)
@@ -9,3 +9,8 @@ $ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice.
 $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice.
 $ENV:PATH+=";C:\Program Files\nodejs" # KataKoda wants to add tools via npm
 $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in.
 $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice.
 $ENV:PATH+=";C:\Program Files\nodejs" # KataKoda wants to add tools via npm
 $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in.
+
+function Launch-Vault() {
+  consul agent -dev # Run in Dev Mode
+  vault sever -config c:\src\dotfiles\vaultconfig.hcl # Use local dev Consul as storage
+}
\ No newline at end of file
index d51feeff9407229f9ca5bcbaf4d6f210a751668c..2d1fd1a1dcf32be8e4e54d26a75914cda3c9b60f 100644 (file)
@@ -31,5 +31,6 @@ if(-Not(Test-Path -Path $destFile)) {
 # Vault for secret management
 # ... and really for coding better intergrations i.e. for RobotFramework
 if($false) {
 # Vault for secret management
 # ... and really for coding better intergrations i.e. for RobotFramework
 if($false) {
+  choco install consul
   choco install vault
 }
\ No newline at end of file
   choco install vault
 }
\ No newline at end of file
diff --git a/vaultconfig.hcl b/vaultconfig.hcl
new file mode 100644 (file)
index 0000000..fa135b0
--- /dev/null
@@ -0,0 +1,9 @@
+storage "consul" {
+  address = "127.0.0.1:8500"
+  path    = "vault/"
+}
+
+listener "tcp" {
+ address     = "127.0.0.1:8200"
+ tls_disable = 1
+}
\ No newline at end of file