Consul: start on config step, but there's much to still to do
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds

This commit is contained in:
Starbeamrainbowlabs 2022-04-28 03:20:24 +01:00
parent 8b29c6f50b
commit 36234baae7
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

12
src/steps-config/75-consul.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
consul_mode="$(ask_multichoice "Consul installation mode" "none" "client" "server")";
if [[ "${consul_mode}" != "none" ]]; then
queue_apt_install "hashicorp-consul";
if [[ "${consul_mode}" == "client" ]]; then
queue_apt_install "hashicorp-consul-systemd-client";
else
queue_apt_install "hashicorp-consul-systemd-server";
fi
fi