mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-07 23:58:51 +00:00
Fix indents
This commit is contained in:
parent
e99b851624
commit
c3d2f74d4e
1 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue