forked from Regional-Australia-Bank/ADR-Gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (28 loc) · 873 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provision "shell",
inline: "cd /vagrant && tar -zcf adr-gateway.tar.gz *.json src/** && cp adr-gateway.tar.gz examples/deployment/vm/ansible/"
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "examples/deployment/vm/ansible/postgres.yml"
end
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "examples/deployment/vm/ansible/adr-gateway.yml"
end
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "examples/deployment/vm/ansible/packer.yml"
end
ports = [
8101,9101,
8102,9102,
8201,9201,
8301,9301,
8402,
10201,
10202
]
ports.each { |port|
config.vm.network "forwarded_port", guest: port, host: port, protocol: "tcp"
}
end