Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (38 sloc) 1.694 kB
9e65199 @tofumatt Add vagrant config options for NFS
tofumatt authored
1 require "yaml"
2
3 # Load up our vagrant config files -- vagrantconfig.yaml first
950f6cb @davedash Better mount points.
davedash authored
4 _config = YAML.load(File.open(File.join(File.dirname(__FILE__),
5 "vagrantconfig.yaml"), File::RDONLY).read)
9e65199 @tofumatt Add vagrant config options for NFS
tofumatt authored
6
7 # Local-specific/not-git-managed config -- vagrantconfig_local.yaml
8 begin
950f6cb @davedash Better mount points.
davedash authored
9 _config.merge!(YAML.load(File.open(File.join(File.dirname(__FILE__),
10 "vagrantconfig_local.yaml"), File::RDONLY).read))
9e65199 @tofumatt Add vagrant config options for NFS
tofumatt authored
11 rescue Errno::ENOENT # No vagrantconfig_local.yaml found -- that's OK; just
12 # use the defaults.
13 end
14
15 CONF = _config
950f6cb @davedash Better mount points.
davedash authored
16 MOUNT_POINT = '/home/vagrant/mozillians'
9e65199 @tofumatt Add vagrant config options for NFS
tofumatt authored
17
bdeff36 @lmorchard First stab as a working Vagrant / Puppet setup
lmorchard authored
18 Vagrant::Config.run do |config|
701fda7 @tofumatt Fix the vagrants
tofumatt authored
19 config.vm.box = "mozillians-v1.0"
20 config.vm.box_url = "http://people.mozilla.org/~mmacpherson/mozillians-v1.0.box"
bdeff36 @lmorchard First stab as a working Vagrant / Puppet setup
lmorchard authored
21
701fda7 @tofumatt Fix the vagrants
tofumatt authored
22 config.vm.forward_port 8000, 8000
71f8db1 @ozten Switching project to Vagrant.
ozten authored
23
bdeff36 @lmorchard First stab as a working Vagrant / Puppet setup
lmorchard authored
24 # Increase vagrant's patience during hang-y CentOS bootup
25 # see: https://github.com/jedi4ever/veewee/issues/14
26 config.ssh.max_tries = 50
27 config.ssh.timeout = 300
549eb7b @davedash I've gotten faster performance by using NFS
davedash authored
28
9e65199 @tofumatt Add vagrant config options for NFS
tofumatt authored
29 # nfs needs to be explicitly enabled to run.
30 if CONF['nfs'] == false or RUBY_PLATFORM =~ /mswin(32|64)/
950f6cb @davedash Better mount points.
davedash authored
31 config.vm.share_folder("v-root", MOUNT_POINT, ".")
6147266 @davedash Moved mount point so nose could run.
davedash authored
32 else
950f6cb @davedash Better mount points.
davedash authored
33 config.vm.share_folder("v-root", MOUNT_POINT, ".", :nfs => true)
6147266 @davedash Moved mount point so nose could run.
davedash authored
34 end
bdeff36 @lmorchard First stab as a working Vagrant / Puppet setup
lmorchard authored
35
c22f4ca @davedash Split up puppet tasks
davedash authored
36 # This keeps it from pegging your CPU
37 # um, doesn't work... in .8.10...
38 # config.vm.customize ["modifyvm", :id, "--cpuexecutioncap", "90"]
39
71f8db1 @ozten Switching project to Vagrant.
ozten authored
40 # Add to /etc/hosts: 33.33.33.24 dev.mozillians.org
701fda7 @tofumatt Fix the vagrants
tofumatt authored
41 config.vm.network :hostonly, "33.33.33.24"
bdeff36 @lmorchard First stab as a working Vagrant / Puppet setup
lmorchard authored
42
43 config.vm.provision :puppet do |puppet|
44 puppet.manifests_path = "puppet/manifests"
45 puppet.manifest_file = "dev-vagrant.pp"
7e04de8 @davedash Adding elasticsearch to puppet
davedash authored
46 puppet.module_path = "puppet/modules"
bdeff36 @lmorchard First stab as a working Vagrant / Puppet setup
lmorchard authored
47 end
48 end
Something went wrong with that request. Please try again.