diff --git a/CHANGELOG.md b/CHANGELOG.md index 0284203..4a75be1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 3.5.4 + +- Vault 1.5.3 +- Fix form script +- Remove deprecated use_vault_oss configuration +- Update documentation + ## 3.5.3 - Upgrade for Terraform 0.13 compatibility diff --git a/README.md b/README.md index 86d0279..07bc9c3 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ _Diagram of a Vaultron cluster with Consul storage flavor_ - [TF_VAR_docker_host](#tf_var_docker_host) - [TF_VAR_vault_flavor (Vault v1.4.0-)](#tf_var_vault_flavor-vault-v140) - [TF_VAR_datacenter_name](#tf_var_datacenter_name) - - [TF_VAR_use_vault_oss](#tf_var_use_vault_oss) - [TF_VAR_vault_server_log_format (Vault v0.10.0-)](#tf_var_vault_server_log_format-vault-v0100) - [TF_VAR_vault_server_log_level](#tf_var_vault_server_log_level) - [TF_VAR_consul_log_level](#tf_var_consul_log_level) @@ -566,15 +565,6 @@ Vault datacenter name - Acceptable values: - _alphanumeric string_ -#### TF_VAR_use_vault_oss - -`1` to use OSS Vault binaries from releases.hashicorp.com or `0` when using custom binaries - -- Default: `1` -- Acceptable values: - - `0` - - `1` - #### TF_VAR_vault_server_log_format (Vault v0.10.0+) A valid Vault server log format diff --git a/black_lion/main.tf b/black_lion/main.tf index 578c8da..3b83db8 100644 --- a/black_lion/main.tf +++ b/black_lion/main.tf @@ -22,9 +22,6 @@ variable "datacenter_name" { variable "vault_version" { } -variable "use_vault_oss" { -} - variable "vault_ent_id" { } diff --git a/black_lion/templates/oss/vault_config_1.5.1.hcl b/black_lion/templates/oss/vault_config_1.5.1.hcl index 1f73c8b..ccb587e 100644 --- a/black_lion/templates/oss/vault_config_1.5.1.hcl +++ b/black_lion/templates/oss/vault_config_1.5.1.hcl @@ -1,4 +1,4 @@ -# Vault OSS v1.5.0 +# Vault OSS v1.5.1 # ----------------------------------------------------------------------- # Global configuration diff --git a/black_lion/templates/oss/vault_config_1.5.2.hcl b/black_lion/templates/oss/vault_config_1.5.2.hcl index 1f73c8b..def4950 100644 --- a/black_lion/templates/oss/vault_config_1.5.2.hcl +++ b/black_lion/templates/oss/vault_config_1.5.2.hcl @@ -1,4 +1,4 @@ -# Vault OSS v1.5.0 +# Vault OSS v1.5.2 # ----------------------------------------------------------------------- # Global configuration diff --git a/black_lion/templates/oss/vault_config_1.5.3.hcl b/black_lion/templates/oss/vault_config_1.5.3.hcl new file mode 100644 index 0000000..2e6527f --- /dev/null +++ b/black_lion/templates/oss/vault_config_1.5.3.hcl @@ -0,0 +1,32 @@ +# Vault OSS v1.5.3 + +# ----------------------------------------------------------------------- +# Global configuration +# ----------------------------------------------------------------------- + +api_addr = "${api_addr}" +cluster_name = "${cluster_name}" +cluster_address = "${cluster_address}" +disable_mlock = "${disable_mlock}" +log_level = "${log_level}" +ui = true +plugin_directory = "/vault/plugins" + +# ----------------------------------------------------------------------- +# Listener configuration +# ----------------------------------------------------------------------- + +listener "tcp" { + address = "${address}" + tls_cert_file = "/etc/ssl/certs/vault-server.crt" + tls_key_file = "/etc/ssl/vault-server.key" +} + +# ----------------------------------------------------------------------- +# Enable Prometheus metrics by default +# ----------------------------------------------------------------------- + +telemetry { + prometheus_retention_time = "30s" + disable_hostname = false +} diff --git a/flavors/consul/vaultron.tf b/flavors/consul/vaultron.tf index 2e9c548..21b8da3 100644 --- a/flavors/consul/vaultron.tf +++ b/flavors/consul/vaultron.tf @@ -12,7 +12,7 @@ terraform { # Set TF_VAR_vault_version to override this variable "vault_version" { - default = "1.5.2" + default = "1.5.3" } # Set TF_VAR_consul_version to override this @@ -64,11 +64,6 @@ variable "vault_flavor" { default = "consul" } -# Set TF_VAR_use_vault_oss to override this -variable "use_vault_oss" { - default = "1" -} - # Set TF_VAR_vault_ent_id to override this variable "vault_ent_id" { default = "vault:latest" @@ -260,7 +255,6 @@ module "vaultron" { consul_server_ips = module.consul_cluster.consul_oss_server_ips consul_client_ips = module.consul_cluster.consul_client_ips disable_clustering = var.disable_clustering - use_vault_oss = var.use_vault_oss vault_cluster_name = var.vault_cluster_name vault_custom_config_template = var.vault_custom_config_template vault_custom_instance_count = var.vault_custom_instance_count diff --git a/flavors/raft/vaultron.tf b/flavors/raft/vaultron.tf index 081242c..4e7d677 100644 --- a/flavors/raft/vaultron.tf +++ b/flavors/raft/vaultron.tf @@ -12,7 +12,7 @@ terraform { # Set TF_VAR_vault_version to override this variable "vault_version" { - default = "1.5.2" + default = "1.5.3" } # ----------------------------------------------------------------------- @@ -59,11 +59,6 @@ variable "vault_flavor" { default = "raft" } -# Set TF_VAR_use_vault_oss to override this -variable "use_vault_oss" { - default = "1" -} - # Set TF_VAR_vault_ent_id to override this variable "vault_ent_id" { default = "vault:latest" @@ -173,7 +168,6 @@ module "telemetry" { module "vaultron" { source = "../../black_lion" datacenter_name = var.datacenter_name - use_vault_oss = var.use_vault_oss vault_cluster_name = var.vault_cluster_name vault_custom_config_template = var.vault_custom_config_template vault_custom_instance_count = var.vault_custom_instance_count diff --git a/form b/form index 062d165..c389826 100755 --- a/form +++ b/form @@ -50,6 +50,7 @@ check_instance_count() { # | Raft | 5 | 0 | # |--------|-------------------|--------------------| # + case "$TF_VAR_vault_flavor" in consul) export TF_VAR_consul_oss_instance_count=3 @@ -67,11 +68,14 @@ check_instance_count() { export TF_VAR_consul_oss_instance_count=0 if [ -n "$TF_VAR_vault_custom_instance_count" ] then - export TF_VAR_vault_custom_instance_count=5 \ - TF_VAR_vault_oss_instance_count=0 - else - export TF_VAR_vault_custom_instance_count=0 \ + if [ "$TF_VAR_vault_custom_instance_count" = "0" ] + then + export TF_VAR_vault_custom_instance_count=0 \ TF_VAR_vault_oss_instance_count=5 + else + export TF_VAR_vault_custom_instance_count=5 \ + TF_VAR_vault_oss_instance_count=0 + fi fi ;; *) @@ -215,18 +219,14 @@ check_raft_version() { then if [ "$TF_VAR_vault_oss_instance_count" != 5 ] then - msg alert "Cannot form Vaultron Integrated Storage flavor with incorrect instance count." - msg info "Please 'export TF_VAR_vault_oss_instance_count=5' and try again." - exit 1 + export TF_VAR_vault_oss_instance_count=5 fi fi if [ "$TF_VAR_vault_oss_instance_count" = 0 ] then if [ "$TF_VAR_vault_custom_instance_count" != 5 ] then - msg alert "Cannot form Vaultron Integrated Storage flavor with incorrect instance count." - msg info "Please 'export TF_VAR_vault_custom_instance_count=5' and try again." - exit 1 + export TF_VAR_vault_custom_instance_count=5 fi fi fi @@ -241,7 +241,7 @@ check_flavor check_instance_count $TF_VAR_vault_flavor check_raft_version check_telemetry -if [ "$(check_katakoda)" = "0" ] +if [ "$(check_katacoda)" = "0" ] then check_docker fi diff --git a/skydome b/skydome index 5276da7..ec88bc4 100644 --- a/skydome +++ b/skydome @@ -91,7 +91,7 @@ fi # ----------------------------------------------------------------------- # Check for signs of execution in a Katakoda environment # ----------------------------------------------------------------------- -check_katakoda() { +check_katacoda() { if [ "$(hostname)" = "host01" ] then if [ "$(hostname)" = "host01" ] diff --git a/version.txt b/version.txt index 444877d..65afb3b 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.5.3 +3.5.4