2014-05-16 15:53:12 +04:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2015-08-04 19:33:37 +03:00
|
|
|
# We require 1.5+ due to specifying only the box name and not config.vm.box_url.
|
|
|
|
Vagrant.require_version ">= 1.5.0"
|
|
|
|
|
2014-05-16 15:53:12 +04:00
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
2013-03-06 21:08:21 +04:00
|
|
|
|
2014-05-16 15:53:12 +04:00
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
# Every Vagrant virtual environment requires a box to build off of.
|
2015-05-30 03:57:30 +03:00
|
|
|
config.vm.box = "ubuntu/trusty32"
|
2014-10-08 00:32:50 +04:00
|
|
|
|
2015-04-06 21:06:11 +03:00
|
|
|
config.vm.hostname = "local.treeherder.mozilla.org"
|
2014-05-16 15:53:12 +04:00
|
|
|
config.vm.network "private_network", ip: "192.168.33.10"
|
2013-03-06 21:08:21 +04:00
|
|
|
|
2015-04-20 18:40:30 +03:00
|
|
|
config.vm.synced_folder ".", "/home/vagrant/treeherder", type: "nfs"
|
2014-05-16 15:53:12 +04:00
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
2015-09-24 18:06:55 +03:00
|
|
|
vb.customize ["modifyvm", :id, "--memory", "2048"]
|
2014-05-16 15:53:12 +04:00
|
|
|
end
|
2013-03-06 21:08:21 +04:00
|
|
|
|
2015-06-10 19:59:30 +03:00
|
|
|
config.vm.define "default", primary: true
|
|
|
|
config.vm.define "scratch", autostart: false
|
|
|
|
|
2013-03-06 21:08:21 +04:00
|
|
|
config.vm.provision :puppet do |puppet|
|
|
|
|
puppet.manifests_path = "puppet/manifests"
|
|
|
|
puppet.manifest_file = "vagrant.pp"
|
2014-10-08 00:32:50 +04:00
|
|
|
|
2013-03-06 21:08:21 +04:00
|
|
|
# enable this to see verbose and debug puppet output
|
|
|
|
#puppet.options = "--verbose --debug"
|
|
|
|
end
|
|
|
|
|
2013-03-06 21:19:12 +04:00
|
|
|
end
|