Vagrant - LucianCumpata/DevOps GitHub Wiki

  • How to forward a port in Vagrant file?

config.vm.network :forwarded_port, guest:80, host:9090

  • How to do provisioning from a separate file?

For example create a folder in vagrant directory in host named .provision and a file named bootstrap.sh and add this in the Vagrant file config.vm.provision :shell, :path => ".provision/bootstrap.sh"