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

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
1 changed files with 12 additions and 0 deletions

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