Fix indents

This commit is contained in:
Sebastian Haderecker 2019-04-09 06:27:36 +00:00
parent e99b851624
commit c3d2f74d4e

View file

@ -42,26 +42,26 @@ echo "### Creating new ECS host via OTC API..."
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
if [ "$(uname)" == "Darwin" ]; then if [ "$(uname)" == "Darwin" ]; then
PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d "," -f2 |cut -d "\"" -f 2) PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d "," -f2 |cut -d "\"" -f 2)
else else
PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d " " -f17) PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d " " -f17)
fi fi
echo "[TPOT]" > ./hosts/$HPNAME echo "[TPOT]" > ./hosts/$HPNAME
echo $PUBIP HPNAME=$HPNAME>> ./hosts/$HPNAME echo $PUBIP HPNAME=$HPNAME>> ./hosts/$HPNAME
echo "### NEW HOST $HPNAME ON IP $PUBIP" echo "### NEW HOST $HPNAME ON IP $PUBIP"
ansible-playbook -i ./hosts/$HPNAME ./ansible/install.yaml ansible-playbook -i ./hosts/$HPNAME ./ansible/install.yaml
echo "***********************************************" echo "***********************************************"
echo "***** SSH TO TARGET: " echo "***** SSH TO TARGET: "
echo "***** ssh linux@$PUBIP -p 64295" echo "***** ssh linux@$PUBIP -p 64295"
echo "***********************************************" echo "***********************************************"
else else
echo "ECS creation unsuccessful. Aborting..." echo "ECS creation unsuccessful. Aborting..."
echo "Hint: Check your EIP or ECS quotas as these limits are a common error." echo "Hint: Check your EIP or ECS quotas as these limits are a common error."
echo "For further output, comment out '2> /dev/null' in the ECS creation command." echo "For further output, comment out '2> /dev/null' in the ECS creation command."
fi fi