From: Edward Delaporte Date: Fri, 20 Dec 2019 20:55:08 +0000 (-0600) Subject: Added setup for running a local copy of Consul and Vault X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/44dfac16ab1f021107a514df7ee2c3d221b1e7f9 Added setup for running a local copy of Consul and Vault --- diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index a517edb..1a4cdb2 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -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. + +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 diff --git a/bootstrap.ps1 b/bootstrap.ps1 index d51feef..2d1fd1a 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -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) { + choco install consul choco install vault } \ No newline at end of file diff --git a/vaultconfig.hcl b/vaultconfig.hcl new file mode 100644 index 0000000..fa135b0 --- /dev/null +++ b/vaultconfig.hcl @@ -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