-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
27 lines (23 loc) · 849 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
$BOX = "centos/7"
$IP = "10.0.0.10"
$MEMORY = ENV.has_key?('VM_MEMORY') ? ENV['VM_MEMORY'] : "1024"
$CPUS = ENV.has_key?('VM_CPUS') ? ENV['VM_CPUS'] : "1"
Vagrant.configure("2") do |config|
config.vm.hostname = "textAnalyzer.dev"
config.vm.box = $BOX
config.vm.network :private_network, ip: $IP
config.vm.network "public_network"
config.ssh.forward_agent = true
config.vm.synced_folder ".", "/var/www/textAnalyzer/current", nfs: true
config.vm.provider "virtualbox" do |v|
v.name = "textAnalyzer"
v.customize ["modifyvm", :id, "--cpuexecutioncap", "100"]
v.customize ["modifyvm", :id, "--memory", $MEMORY]
v.customize ["modifyvm", :id, "--cpus", $CPUS]
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.sudo = true
ansible.limit = "all"
end
end