Skip to content

Instantly share code, notes, and snippets.

@rahulroshan96
Last active July 28, 2017 14:20
Show Gist options
  • Save rahulroshan96/a30d81f7bedc014ed119f4d54c1f9fc8 to your computer and use it in GitHub Desktop.
Save rahulroshan96/a30d81f7bedc014ed119f4d54c1f9fc8 to your computer and use it in GitHub Desktop.
wget https://s3-us-west-2.amazonaws.com/avi-tmp-cus/multi_az_docker_install.tar.gz -O /home/aviuser/docker_install.tar.gz
cd /home/aviuser/
tar -xvf /home/aviuser/docker_install.tar.gz
ip=`ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1`
echo $1 $2
wget https://s3-us-west-2.amazonaws.com/avi-full-access/setup_avi.json -O /home/aviuser/setup_avi.json
sed -e "s/1.1.1.1/$1/" -e "s/2.2.2.2/$2/" /home/aviuser/setup_avi.json > /home/aviuser/setup_avi1.json
sudo ./avi_baremetal_setup.py -i $ip -c -cc 4 -cm 12 -m $ip --setup /home/aviuser/setup_avi1.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment