cinderweb

Untitled

Sep 17th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  5. VAGRANTFILE_API_VERSION = "2"
  6.  
  7. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  8. # All Vagrant configuration is done here. The most common configuration
  9. # options are documented and commented below. For a complete reference,
  10. # please see the online documentation at vagrantup.com.
  11.  
  12. # Every Vagrant virtual environment requires a box to build off of.
  13. config.vm.box = "precise32"
  14.  
  15. # The url from where the 'config.vm.box' box will be fetched if it
  16. # doesn't already exist on the user's system.
  17. config.vm.box_url = "http://files.vagrantup.com/precise32.box"
  18.  
  19. # Set up a hostname for the machine
  20. config.vm.hostname = "tmw-dev"
  21.  
  22. # Forward ports for the character, map and login server
  23. config.vm.network :forwarded_port, guest: 6122, host: 6122
  24. config.vm.network :forwarded_port, guest: 5122, host: 5122
  25. config.vm.network :forwarded_port, guest: 6901, host: 6901
  26.  
  27. # Provision the VM
  28. $script = <<SCRIPT
  29. chmod u+x /vagrant/bootstrap.sh
  30. su vagrant -c /vagrant/bootstrap.sh
  31. SCRIPT
  32. config.vm.provision :shell, :path => "bootstrap.sh"
  33. end
Advertisement
Add Comment
Please, Sign In to add comment