brianshumate / vaultron Goto Github PK
View Code? Open in Web Editor NEW:robot: Vault clusters Terraformed onto Docker for great fun and learning!
License: BSD 2-Clause "Simplified" License
:robot: Vault clusters Terraformed onto Docker for great fun and learning!
License: BSD 2-Clause "Simplified" License
Hey @brianshumate - thanks for sharing Vaultron with the world - it's a great dev tool!
./form
brings up a working Vaultron vault cluster as it typically does ๐
The leaf certs for both raft and consul-flavored deployments expired Jan 27 13:43:20 2022 GMT
, so Vaultron Vault clusters will not start.
This includes the certs found in black_lion/tls/
, red_lion/tls/
, and yellow_lion/tls/
directories.
TF_VAR_vault_flavor=raft
in my shell env../form
./ion_darts
to export configs for this vaultron instancevault status
to see status of cluster:docker logs vaultron-vault0
node to see what's up:openssl x509 -in black_lion/tls/vault-server-0.crt -noout -text
on an example leaf cert to see it expired today:
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=node.arus.consul
Validity
Not Before: Oct 25 13:42:50 2019 GMT
Not After : Jan 27 13:43:20 2022 GMT
NOTE: the certs in
etc/tls/
are NOT expired, just the leaf certs in the*_lion/tls
directories.
The form
and unform
scripts should check for the existence of a local terraform
binary.
Otherwise, it's this:
./form: 21: ./form: terraform: not found
./form: 23: ./form: terraform: not found
โจ Form Vaultron! ...
โจ Consul version:
โจ Vault version:
๐ซ Vaultron cannot form! Check terraform plan output.
On line 23 of the script "form," there is a trailing backtick, which looks to be a typo:
https://github.com/greyspectrum/vaultron/blob/b43be816efdb35c16266ea33a2ca4dbd2d0fbbdf/form#L23
See title. Latest release; file is there.
I edited the form
script for debugging (see comment below):
check_vault_version() {
if [ -n "$TF_VAR_vault_version" ]
then
USER_VAULT_CONFIG="../../black_lion/templates/oss/vault_config_${TF_VAR_vault_version}.hcl"
echo $USER_VAULT_CONFIG # edit for debugging
if [ ! -f "$USER_VAULT_CONFIG" ]
then
msg alert "Vaultron cannot form- sorry, Vaultron does not support Vault version ${TF_VAR_vault_version}!"
unset TF_VAR_vault_version
kill -INT $$
fi
fi
}
./form 21s
[vaultron] [=] Form Vaultron!
[vaultron] [i] Terraform has been successfully initialized!
../../black_lion/templates/oss/vault_config_"1.6.0".hcl
[vaultron] [!] Vaultron cannot form- sorry, Vaultron does not support Vault version "1.6.0"!
ll black_lion/templates/oss/vault_config_"1.6.0".hcl 6s
-rw-rw-r-- 1 tobias tobias 1,1K Dez 7 21:43 black_lion/templates/oss/vault_config_1.6.0.hcl
The config file is there, but the conditional is not matching.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.