Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Create new NDO setup script and add to Vagrantfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kwbales committed Mar 27, 2015
1 parent 6eb832f commit 2edcb9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions scripts/ndo-setup.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2edcb9b

Please sign in to comment.