cinderweb

Untitled

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