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"
|
|
|
|
|
2016-02-02 17:29:40 +03:00
|
|
|
Vagrant.configure("2") do |config|
|
2016-04-29 16:18:24 +03:00
|
|
|
config.vm.box = "ubuntu/trusty64"
|
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|
|
2016-02-02 18:00:48 +03:00
|
|
|
vb.name = "treeherder"
|
2016-02-02 17:29:40 +03:00
|
|
|
vb.memory = "2048"
|
2014-05-16 15:53:12 +04:00
|
|
|
end
|
2013-03-06 21:08:21 +04:00
|
|
|
|
2016-02-02 17:29:40 +03:00
|
|
|
config.vm.provision "puppet" do |puppet|
|
2013-03-06 21:08:21 +04:00
|
|
|
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
|