Vagrantfile 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/usr/bin/env ruby
  2. Vagrant.configure("2") do |config|
  3. # All Vagrant configuration is done here. The most common configuration
  4. # options are documented and commented below. For a complete reference,
  5. # please see the online documentation at vagrantup.com.
  6. # Every Vagrant virtual environment requires a box to build off of.
  7. config.vm.box = "precise32"
  8. # The url from where the 'config.vm.box' box will be fetched if it
  9. # doesn't already exist on the user's system.
  10. config.vm.box_url = "http://files.vagrantup.com/precise32.box"
  11. # Create a forwarded port mapping which allows access to a specific port
  12. # within the machine from a port on the host machine. In the example below,
  13. # accessing "localhost:8080" will access port 80 on the guest machine.
  14. # config.vm.network :forwarded_port, guest: 80, host: 8080
  15. # Create a private network, which allows host-only access to the machine
  16. # using a specific IP.
  17. config.vm.network :private_network, ip: "192.168.33.10"
  18. # Create a public network, which generally matched to bridged network.
  19. # Bridged networks make the machine appear as another physical device on
  20. # your network.
  21. # config.vm.network :public_network
  22. # Share an additional folder to the guest VM. The first argument is
  23. # the path on the host to the actual folder. The second argument is
  24. # the path on the guest to mount the folder. And the optional third
  25. # argument is a set of non-required options.
  26. # config.vm.synced_folder "../data", "/vagrant_data"
  27. # Provider-specific configuration so you can fine-tune various
  28. # backing providers for Vagrant. These expose provider-specific options.
  29. # Example for VirtualBox:
  30. #
  31. # config.vm.provider :virtualbox do |vb|
  32. # # Don't boot with headless mode
  33. # vb.gui = true
  34. #
  35. # # Use VBoxManage to customize the VM. For example to change memory:
  36. # vb.customize ["modifyvm", :id, "--memory", "1024"]
  37. # end
  38. #
  39. # View the documentation for the provider you're using for more
  40. # information on available options.
  41. # Enable provisioning with Puppet stand alone. Puppet manifests
  42. # are contained in a directory path relative to this Vagrantfile.
  43. # You will need to create the manifests directory and a manifest in
  44. # the file base.pp in the manifests_path directory.
  45. #
  46. # An example Puppet manifest to provision the message of the day:
  47. #
  48. # # group { "puppet":
  49. # # ensure => "present",
  50. # # }
  51. # #
  52. # # File { owner => 0, group => 0, mode => 0644 }
  53. # #
  54. # # file { '/etc/motd':
  55. # # content => "Welcome to your Vagrant-built virtual machine!
  56. # # Managed by Puppet.\n"
  57. # # }
  58. #
  59. config.vm.provision :puppet do |puppet|
  60. puppet.manifests_path = "vagrant/puppet/manifests"
  61. puppet.module_path = "vagrant/puppet/modules"
  62. puppet.manifest_file = "site.pp"
  63. end
  64. end