-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
36 lines (33 loc) · 1.74 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
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/jammy64'
config.ssh.insert_key = true
config.vm.provider "virtualbox" do |v|
# v.linked_clone = true
v.memory = 6144
v.cpus = 4
end
# edgex runtime node
config.vm.define 'edgex-runtime' do |machine|
machine.vm.hostname = 'edgex-runtime'
machine.vm.network 'forwarded_port', id: 'ssh', host: 2221, guest: 22
machine.vm.network 'forwarded_port', host: 59701, guest: 59701, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59900, guest: 59900 , protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59986, guest: 59986, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59880, guest: 59880, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59882, guest: 59882, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59861, guest: 59861, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59860, guest: 59860, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59881, guest: 59881, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 4000, guest: 4000, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 59720, guest: 59720, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 6379, guest: 6379, protocol: "tcp"
machine.vm.network 'forwarded_port', host: 8500, guest: 8500, protocol: "tcp"
machine.vm.network 'private_network', virtualbox__intnet: 'edgex-cluster', ip: '10.0.0.10'
end
# iot nodes
config.vm.define 'iot-node-1' do |machine|
machine.vm.hostname = 'iot-node-1'
machine.vm.network 'forwarded_port', id: 'ssh', host: 2222, guest: 22
machine.vm.network 'private_network', virtualbox__intnet: 'edgex-cluster', ip: '10.0.0.20'
end
end