From 36234baae75989d4eac1913027f2d2b9c20f4605 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 28 Apr 2022 03:20:24 +0100 Subject: [PATCH] Consul: start on config step, but there's much to still to do --- src/steps-config/75-consul.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 src/steps-config/75-consul.sh diff --git a/src/steps-config/75-consul.sh b/src/steps-config/75-consul.sh new file mode 100755 index 0000000..4378600 --- /dev/null +++ b/src/steps-config/75-consul.sh @@ -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