forked from 3ofcoins/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
29 lines (25 loc) · 1.06 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
# -*- mode: ruby; -*-
Vagrant.configure("2") do |config|
config.vm.guest = :freebsd
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_freebsd-10.1_chef-provisionerless.box"
config.vm.box = "opscode_freebsd-10.1_chef-provisionerless.box"
# private network em1 for nfs mount
config.vm.network "private_network", ip: "10.0.1.10"
config.ssh.shell = "/bin/sh"
# Use NFS as a shared folder
config.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
#vb.gui = true
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "contrib/ansible/vagrant-playbook.yml"
ansible.sudo = true
ansible.verbose = 'v'
end
end