hack: grab only 192 ip for vagrant

Change-Id: I3f952492c9a88f198fe3b24e212fbf7ea527dd1f
This commit is contained in:
Mohammed Naser 2019-08-23 09:41:46 -04:00
parent c794f1668d
commit e7e6cd11ba
1 changed files with 3 additions and 3 deletions

View File

@ -6,9 +6,9 @@ set -xe
vagrant up
# Grab all the IP addresses
MASTER_IP=$(vagrant ssh master -c "hostname -I" 2>/dev/null | xargs echo -n)
MINION_1_IP=$(vagrant ssh minion-1 -c "hostname -I" 2>/dev/null | xargs echo -n)
MINION_2_IP=$(vagrant ssh minion-2 -c "hostname -I" 2>/dev/null | xargs echo -n)
MASTER_IP=$(vagrant ssh master -c "hostname -I | cut -d' ' -f1" 2>/dev/null | xargs echo -n)
MINION_1_IP=$(vagrant ssh minion-1 -c "hostname -I | cut -d' ' -f1" 2>/dev/null | xargs echo -n)
MINION_2_IP=$(vagrant ssh minion-2 -c "hostname -I | cut -d' ' -f1" 2>/dev/null | xargs echo -n)
# Start up an SSH agent
eval `ssh-agent -s`