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