Advertisement
javifelices

Prueba Multi

Oct 7th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.59 KB | None | 0 0
  1. Vagrant.configure("2") do |config|
  2.   config.vm.define "web" do |nodo1|
  3.     nodo1.vm.box = "ubuntu/trusty64"
  4.     nodo1.vm.hostname = "web"
  5.     #nodo1.vm.network "public_network", bridge: "wlan0"
  6.     #nodo1.vm.network "private_network", ip: "10.0.100.101"
  7.     nodo1.vm.network "forwarded_port", guest: 80, host: 8080,
  8.       auto_correct: true
  9.   end
  10.   config.vm.define "db" do |nodo2|
  11.     nodo2.vm.box = "ubuntu/trusty64"
  12.     nodo2.vm.hostname = "db"
  13.     #nodo2.vm.network "private_network", ip: "10.0.100.102"
  14.     nodo2.vm.network "forwarded_port", guest: 80, host: 8080,
  15.       auto_correct: true
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement