-
Notifications
You must be signed in to change notification settings - Fork 56
/
Vagrantfile
38 lines (28 loc) · 1.02 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
38
# -*- 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|
## Box config
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provider :virtualbox do |vb|
vb.name = "developer.rackspace.com"
end
## Network config
config.vm.network :forwarded_port, guest: 9200, host: 9200, auto_correct: true
config.vm.network :forwarded_port, guest: 80, host: 8000, auto_correct: true
config.vm.network :private_network, ip: "192.168.42.11"
## Shared folder for build
config.vm.synced_folder "./", "/vagrant_data", type: "rsync",
rsync__args: [
"--verbose", "--archive", "-z",
"--chmod=Dug+rwx,Fug+rw"
]
## Ansible Config
config.vm.provision "ansible" do |ansible|
ansible.playbook = "deploy/dev_web.yml"
ansible.inventory_path = "deploy/inventory/dev/hosts"
ansible.limit = 'all'
end
end