jsiebens / hashi-up

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

how to only install (no configuration) of Consul/Nomad #29

Closed shantanugadgil closed 2 years ago

shantanugadgil commented 2 years ago

Is it possible to only install the specified versions of Consul and Nomad on the machine without touching anything related to configurations?

The use case is a day-N operation where I would rather go around updating the binaries (and doing service restart) rather than roll out new AMIs. :)

jsiebens commented 2 years ago

There is a get command available, but that's more for downloading the binaries on your local machine. Just installing a binary on a target machine is not possible with the current state of this little project, but it can be a useful addition though.

jsiebens commented 2 years ago

hi @shantanugadgil

It seems like executing the same command again with a different version can upgrade the binaries. But all flags, except the version flag, should be exactly the same, otherwise, the configuration is updated too.

E.g:

First: hashi-up nomad install --ssh-target-addr <addr> --version 1.1.0 --server --client

Next: hashi-up nomad install --ssh-target-addr <addr> --version 1.1.1 --server --client