cluster-deployment/src/steps-config/80-nomad.sh
Starbeamrainbowlabs 63658729db
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
Fix all step queueing
2022-08-06 20:41:07 +01:00

21 lines
478 B
Bash
Executable file

#!/usr/bin/env bash
nomad_mode="$(ask_multichoice "Nomad installation mode" "none" "client" "server" "both")";
if [[ "${nomad_mode}" != "none" ]]; then
queue_apt_install "hashicorp-nomad";
case "${nomad_mode}" in
client )
queue_apt_install "hashicorp-nomad-systemd-client";
;;
server )
queue_apt_install "hashicorp-nomad-systemd-server";
;;
both )
queue_apt_install "hashicorp-nomad-systemd-both";
;;
esac
queue_postinstall_step "80-nomad.sh"
fi