Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-16.04"
  config.vm.network "public_network", bridge: "Intel(R) Ethernet Connection I219-LM" , ip: "192.168.0.101"
  config.vm.hostname = "master"
  config.vm.provision "shell", inline: $script
end

...

$script = <<SCRIPT
sudo -i
ip link set enp0s3 down
ip route add default via 192.168.0.1
sed -i '$ d' /etc/resolv.conf
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
exit
SCRIPT

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-16.04"
  config.vm.network "public_network", bridge: "Intel(R) Ethernet Connection I219-LM" , ip: "192.168.0.102"
  config.vm.hostname = "masterminion1"
  config.vm.provision "shell", inline: $script
end

...