-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
63 lines (49 loc) · 1.63 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
55
56
57
58
59
60
61
62
63
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provision :ansible do |ansible|
ansible.groups = {
"services" => ["dev_services"],
"frontend" => ["dev_frontend"],
"development:children" => ["frontend", "services"]
}
ansible.playbook = "../ng-infrastructure/infrastructure.yml"
ansible.limit = 'all'
end
config.vm.define :dev_services do |services|
services.vm.box = "ubuntu/trusty64"
services.vm.network "private_network", ip: "10.0.3.2"
services.vm.hostname = "dev-services"
services.vm.synced_folder "../ng-git", "/var/lib/git", type: "rsync", rsync__exclude: [".git/", "node_modules/", "lib/credentials.json"]
services.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
v.name = "ng-Services"
end
services.vm.provision :ansible do |ansible|
ansible.groups = {
"services" => ["dev_services"],
"development:children" => ["services"]
}
ansible.playbook = "../ng-infrastructure/services.yml"
end
end
config.vm.define :dev_frontend do |frontend|
frontend.vm.box = "ubuntu/trusty64"
frontend.vm.network "private_network", ip: "10.0.3.4"
frontend.vm.hostname = "dev-frontend"
frontend.vm.synced_folder ".", "/var/lib/frontend", type: "rsync", rsync__exclude: [".git/", "node_modules/", "lib/credentials.json"]
frontend.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 1
v.name = "ng-Frontend"
end
frontend.vm.provision :ansible do |ansible|
ansible.groups = {
"frontend" => ["dev_frontend"],
"development:children" => ["frontend"]
}
ansible.playbook = "../ng-infrastructure/frontend.yml"
end
end
end