jsiebens / hashi-up

bootstrap HashiCorp Consul, Nomad, or Vault over SSH < 1 minute
MIT License
676 stars 54 forks source link

Change to way of getting the default version to install #6

Closed jsiebens closed 3 years ago

jsiebens commented 3 years ago

Signed-off-by: Johan Siebens johan.siebens@gmail.com

Description

Change to way of getting the default version of the products to install

Motivation

Currently, hashi-up is using https://checkpoint.hashicorp.com/ to get the latest version of the products. As Vault is intentionally not integrated with Checkpoint, this cannot be used when installing Vault.

This PR introduces a new way to get a default version, by using a little versions.hcl file available in this source repository

Fixes #5

angrycub commented 3 years ago

A little known URL that might help if you want to internalize the check is https://releases.hashicorp.com/index.json. You could then bring your favorite semver library and find the latest in that json. Works at the product level too (https://releases.hashicorp.com/vault/index.json)

jsiebens commented 3 years ago

@angrycub thanks for bringing that up, I'll have a look at it