@@ 46,6 46,7 @@ sub_help() {
echo " build_docker_server_stable - Build the server container and push it as server-stable" # done
echo " build_docker_web_stable - Build the web dockerfile and push it as web-stable" # done
echo " build_docker_stable - Build the stable api, web and server containers" # done
+ echo " infra [action] - Run an infrastructure command. Requires an infrastructure key" # done
}
check_install_cargo() {
@@ 248,6 249,11 @@ sub_build_docker_stable() {
sub_build_docker_web_stable
}
+sub_infra() {
+ echo "[*] Connecting to infrastructure manager server. If you are prompted for a password, enter your infrastructure key. You may be prompted several times."
+ ssh team@10.16.1.3 /home/team/run_ansible.sh "$1"
+}
+
subcommand=$1
case $subcommand in
"" | "-h" | "--help" | "help")