forked from getweber/weber-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
41 lines (36 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
30
31
32
33
34
35
36
37
38
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :debian do |config|
config.vm.box = "debian/jessie64"
config.vm.host_name = "debian"
config.vm.forward_port 80, 8000
end
config.vm.define :centos do |config|
config.vm.box = "bento/centos-7.1"
config.vm.host_name = "centos"
config.vm.forward_port 80, 8001
end
config.vm.define :ubuntu do |config|
config.vm.box = "ubuntu/vivid64"
config.vm.host_name = "ubuntu"
config.vm.forward_port 80, 8002
end
config.vm.define :arch do |config|
config.vm.box = "terrywang/archlinux"
config.vm.host_name = "arch"
config.vm.forward_port 80, 8003
end
config.vm.provision "ansible" do |ansible|
ansible.groups = {
"webapp" => ["debian", "centos", "ubuntu", "arch"],
"db" => ["debian", "centos", "ubuntu", "arch"]
}
ansible.playbook = "ansible/site.yml"
ansible.extra_vars = {
"install_with_debug" => true,
"ansible_python_interpreter" => "/usr/bin/python2"
}
ansible.sudo = true
end
end