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 [ "$(uname)" == "Darwin" ]; then
PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d "," -f2 |cut -d "\"" -f 2)
else
PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d " " -f17)
fi
if [ "$(uname)" == "Darwin" ]; then
PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d "," -f2 |cut -d "\"" -f 2)
else
PUBIP=$(./otc-tools/otc.sh ecs list 2>/dev/null | grep $HPNAME|cut -d " " -f17)
fi
echo "[TPOT]" > ./hosts/$HPNAME
echo $PUBIP HPNAME=$HPNAME>> ./hosts/$HPNAME
echo "### NEW HOST $HPNAME ON IP $PUBIP"
echo "[TPOT]" > ./hosts/$HPNAME
echo $PUBIP HPNAME=$HPNAME>> ./hosts/$HPNAME
echo "### NEW HOST $HPNAME ON IP $PUBIP"
ansible-playbook -i ./hosts/$HPNAME ./ansible/install.yaml
echo "***********************************************"
echo "***** SSH TO TARGET: "
echo "***** ssh linux@$PUBIP -p 64295"
echo "***********************************************"
ansible-playbook -i ./hosts/$HPNAME ./ansible/install.yaml
echo "***********************************************"
echo "***** SSH TO TARGET: "
echo "***** ssh linux@$PUBIP -p 64295"
echo "***********************************************"
else
echo "ECS creation unsuccessful. Aborting..."
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 "ECS creation unsuccessful. Aborting..."
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."
fi