-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
54 lines (44 loc) · 1.84 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- 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 = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.ssh.forward_agent = true
config.vm.provider :digital_ocean do |provider, override|
override.ssh.username =
override.ssh.private_key_path = "~/.ssh/id_rsa"
override.vm.box = "digital_ocean"
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
provider.client_id =
provider.api_key =
provider.image = "Ubuntu 12.10 x64"
provider.region = "New York 2"
provider.private_networking = true
provider.size = "512MB"
end
config.vm.define :web do |web_config|
web_config.vm.host_name = 'web'
web_config.vm.network :private_network, ip: "10.0.0.2"
web_config.vm.synced_folder ".", "/vagrant", disabled: true
web_config.vm.synced_folder "./dota2rails", "/webapps/dota2rails"
web_config.vm.synced_folder "./matchurls", "/webapps/matchurls"
web_config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
end
config.vm.define :mq do |mq_config|
mq_config.vm.host_name = 'mq'
mq_config.vm.network :private_network, ip: "10.0.0.3"
mq_config.vm.synced_folder ".", "/vagrant", disabled: true
mq_config.vm.synced_folder "./alacrity", "/mqapps/alacrity"
#mq_config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
end
config.vm.provision :ansible do |ansible|
ansible.inventory_path = "ansible/hosts"
ansible.playbook = "ansible/playbook.yml"
ansible.verbose = 'vv'
ansible.ask_sudo_pass = true
#ansible.tags = "deploy"
#ansible.start_at_task = "bundle install"
end
end