-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
37 lines (27 loc) · 1.25 KB
/
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
28
29
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
VM_HOSTNAME = "awpcp.local"
VM_ADDRESS = "10.10.10.2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder '.', '/vagrant', nfs:true
config.vm.provision "shell", inline: "sed -i s/enabled=1/enabled=0/ /etc/yum.repos.d/fedora-updates-testing.repo"
# config.vm.provision "shell", path: "bin/fix-slow-dns.sh"
config.vm.provision "shell", path: "bin/vagrant-bootstrap.sh"
config.vm.define :development do |local|
local.vm.box = "chef/fedora-20"
local.vm.hostname = VM_HOSTNAME
local.vm.network :private_network, ip: VM_ADDRESS
local.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--cpus', '4']
vb.customize ['modifyvm', :id, '--ioapic', 'on']
vb.customize ['modifyvm', :id, '--memory', '2048']
vb.name = "awpcp-development"
# https:/mitchellh/vagrant/issues/2786
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
# https:/asm-helpful/helpful-web/commit/b0f624c54e9492f5d6eee9d4674e6865ac622cef
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
end
end