# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. # -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Every Vagrant virtual environment requires a box to build off of. config.vm.box = "precise32" config.vm.box_url = "http://files.vagrantup.com/precise32.box" config.vm.network "private_network", ip: "192.168.33.10" config.vm.synced_folder ".", "/home/vagrant/treeherder-service", type: "nfs" config.vm.synced_folder "../treeherder-ui", "/home/vagrant/treeherder-ui", type: "nfs" config.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--memory", "1024"] end config.vm.provision :puppet do |puppet| puppet.manifests_path = "puppet/manifests" puppet.manifest_file = "vagrant.pp" #uncomment in production to serve treeherder-ui from dist directory #puppet.manifest_file = "production.pp" # enable this to see verbose and debug puppet output #puppet.options = "--verbose --debug" end end