From cb213f2fd483bc3dda63749bde7ca2ac170b3351 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Fri, 21 Apr 2023 20:46:20 -0400 Subject: [PATCH] add infra build command --- spacetime | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spacetime b/spacetime index e0d7d99753a0c26d21a53303e581d552e01e6b2c..8a0ba29219598505df2541e908059e02d20596ad 100755 --- a/spacetime +++ b/spacetime @@ -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")