diff options
Diffstat (limited to 'get_env_info.sh')
-rwxr-xr-x | get_env_info.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/get_env_info.sh b/get_env_info.sh new file mode 100755 index 00000000..77af011b --- /dev/null +++ b/get_env_info.sh @@ -0,0 +1,22 @@ +#! /bin/bash + +usage() { + echo "usage $0 -n <installer_type> -i <installer_ip>" +} + + + +while getopts ":n:i:" optchar; do + case "${optchar}" in + n) + export INSTALLER_TYPE=${OPTARG};; + + i) + export INSTALLER_IP=${OPTARG};; + + *) + echo "Incorrect usage" + usage ;; + esac +done +./data/fetch_os_creds.sh -d ./data/opnfv-creds.sh |