From 2edcb9b6f6df4712697460d3ad0bc53612689db2 Mon Sep 17 00:00:00 2001 From: Kurt Bales Date: Thu, 26 Mar 2015 23:52:52 -0700 Subject: [PATCH] Create new NDO setup script and add to Vagrantfile --- Vagrantfile | 2 +- scripts/ndo-setup.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 scripts/ndo-setup.sh diff --git a/Vagrantfile b/Vagrantfile index a629a7b..34dde6b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -31,7 +31,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # add this to the shell # export ANSIBLE_LIBRARY=/etc/ansible/roles/ # set routes for 10.10.0.0/24 and 192.168.10.0/24 to 172.16.0.1 - s.path = "scripts/ifbounce.sh" + s.path = "scripts/ndo-setup.sh" end end diff --git a/scripts/ndo-setup.sh b/scripts/ndo-setup.sh new file mode 100644 index 0000000..c9a703b --- /dev/null +++ b/scripts/ndo-setup.sh @@ -0,0 +1,7 @@ +export ANSIBLE_LIBRARY=/etc/ansible/roles/ +echo "export ANSIBLE_LIBRARY=/etc/ansible/roles/" >> /home/vagrant/.bashrc + +/sbin/route add -net 10.10.0.0 netmask 255.255.255.0 gw 172.16.0.1 dev eth1 +/sbin/route add -net 192.168.10.0 netmask 255.255.255.0 gw 172.16.0.1 dev eth1 +echo "up route add -net 10.10.0.0/24 gw 172.16.0.1 dev eth1" >> /etc/network/interfaces +echo "up route add -net 192.168.10.0/24 gw 172.16.0.1 dev eth1" >> /etc/network/interfaces