-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
49 lines (39 loc) · 1.16 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "dev_backend"
config.vm.hostname = "dev-backend"
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "10.0.3.6"
config.vm.synced_folder ".", "/var/lib/backend", type: "rsync", rsync__exclude: [".git/"]
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.provision :ansible do |ansible|
ansible.groups = {
"proxy" => ["dev_backend"],
"backend" => ["dev_backend"],
"development:children" => ["backend"]
}
ansible.playbook = "~/p/ng-infrastructure/infrastructure.yml"
ansible.limit = 'all'
end
# config.vm.provision :ansible do |ansible|
# ansible.groups = {
# "proxy" => ["dev_backend"],
# "backend" => ["dev_backend"],
# "development:children" => ["backend"]
# }
#
# ansible.playbook = "/Users/matejkramny/Projects/ng-infrastructure/backend.yml"
# end
config.vm.provision :ansible do |ansible|
ansible.groups = {
"proxy" => ["dev_backend"],
"backend" => ["dev_backend"],
"development:children" => ["backend", "proxy"]
}
ansible.playbook = "~/p/ng-infrastructure/proxy.yml"
end
end