Source

honeeebox / vagrant / vm / Vagrantfile

Vagrant::Config.run do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "ubuntu-precise-64"

  # The url from where the 'config.vm.box' box will be fetched if it
  # doesn't already exist on the user's system.
  config.vm.box_url = "http://fizz.york.ac.uk/ubuntu-precise-64.box"

  # Assign this VM to a host only network IP, allowing you to access it
  # via the IP.
  config.vm.network :hostonly, "192.168.203.2"

  config.vm.forward_port 8080, 8080

  # we need at least 1Gb ram for postgresql
  config.vm.customize do |vm|
   vm.memory_size = 1024
  end
                        
  # mount the puppet repo inside the vm
  config.vm.share_folder "repo", "/repo", "../../"

   # puppet configuration  
   config.vm.provision :puppet do |puppet|
     puppet.manifests_path = "../puppet/manifests"   
     puppet.module_path    = "../puppet/modules"
     puppet.manifest_file = "init.pp"        
   end 


end