forked from cfpb/github-wiki-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
27 lines (21 loc) · 793 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# vbox name
config.vm.box = "centos_6_5_64"
# vbox url
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
# run provision.py on boot - not currently working
# config.vm.provision "shell", path: "provision.py"
# port forwarding
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 9200, host: 9200
# up memory (elasticsearch is a memory hog)
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
# check if vagrant cachier is installed
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.auto_detect = true
end
end