-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
30 lines (22 loc) · 1004 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
28
29
30
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "saucy64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box"
config.ssh.forward_agent = true
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network :private_network, ip: "192.168.111.222"
#syncs entire project directory to ~/application on target machine
config.vm.synced_folder "src/", "/home/vagrant/src", :create => "true", type: "nfs"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "1024"]
end
#provisions the environment
config.vm.provision "ansible" do |ansible|
ansible.raw_arguments = "-i provisioning/hosts"
ansible.playbook = "provisioning/mean.yml"
end
end