This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
107 lines (98 loc) · 4.24 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# -*- mode: ruby -*-
# vi: set ft=ruby :
default_box = 'vEOS-lab-4.18.1F'
Vagrant.configure(2) do |config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = "./helper_scripts/empty_playbook.yml"
ansible.groups = {
"leaf" => ["leaf-1","leaf-3","leaf-2","leaf-5","leaf-4","leaf-6",],
"spine" => ["spine-1","spine-2",],
"host" => ["server-4","server-2","server-3","server-1","server-6","server-5",],
"network:children" => ["leaf","spine","edge",]
}
end
config.vm.define 'spine-1' do |spine01|
spine01.vm.box = default_box
spine01.vm.network 'private_network',
virtualbox__intnet: 's01l01',
ip: '169.254.1.11', auto_config: false
spine01.vm.network 'private_network',
virtualbox__intnet: 's01l02',
ip: '169.254.1.11', auto_config: false
spine01.vm.network 'private_network',
virtualbox__intnet: 's01l03',
ip: '169.254.1.11', auto_config: false
spine01.vm.network 'private_network',
virtualbox__intnet: 's01l04',
ip: '169.254.1.11', auto_config: false
config.vbguest.auto_update = false
end
config.vm.define 'spine-2' do |spine02|
spine02.vm.box = default_box
spine02.vm.network 'private_network',
virtualbox__intnet: 's02l01',
ip: '169.254.1.11', auto_config: false
spine02.vm.network 'private_network',
virtualbox__intnet: 's02l02',
ip: '169.254.1.11', auto_config: false
spine02.vm.network 'private_network',
virtualbox__intnet: 's02l03',
ip: '169.254.1.11', auto_config: false
spine02.vm.network 'private_network',
virtualbox__intnet: 's02l04',
ip: '169.254.1.11', auto_config: false
config.vbguest.auto_update = false
end
config.vm.define 'leaf-1' do |leaf01|
leaf01.vm.box = default_box
leaf01.vm.network 'private_network',
virtualbox__intnet: 's01l01',
ip: '169.254.1.11', auto_config: false
leaf01.vm.network 'private_network',
virtualbox__intnet: 's02l01',
ip: '169.254.1.11', auto_config: false
leaf01.vm.network 'private_network',
virtualbox__intnet: 'l01l02',
ip: '169.254.1.11', auto_config: false
config.vbguest.auto_update = false
end
config.vm.define 'leaf-2' do |leaf02|
leaf02.vm.box = default_box
leaf02.vm.network 'private_network',
virtualbox__intnet: 's01l02',
ip: '169.254.1.11', auto_config: false
leaf02.vm.network 'private_network',
virtualbox__intnet: 's02l02',
ip: '169.254.1.11', auto_config: false
leaf02.vm.network 'private_network',
virtualbox__intnet: 'l01l02',
ip: '169.254.1.11', auto_config: false
config.vbguest.auto_update = false
end
config.vm.define 'leaf-3' do |leaf03|
leaf03.vm.box = default_box
leaf03.vm.network 'private_network',
virtualbox__intnet: 's01l03',
ip: '169.254.1.11', auto_config: false
leaf03.vm.network 'private_network',
virtualbox__intnet: 's02l03',
ip: '169.254.1.11', auto_config: false
leaf03.vm.network 'private_network',
virtualbox__intnet: 'l03l04',
ip: '169.254.1.11', auto_config: false
config.vbguest.auto_update = false
end
config.vm.define 'leaf-4' do |leaf04|
leaf04.vm.box = default_box
leaf04.vm.network 'private_network',
virtualbox__intnet: 's01l04',
ip: '169.254.1.11', auto_config: false
leaf04.vm.network 'private_network',
virtualbox__intnet: 's02l04',
ip: '169.254.1.11', auto_config: false
leaf04.vm.network 'private_network',
virtualbox__intnet: 'l03l04',
ip: '169.254.1.11', auto_config: false
config.vbguest.auto_update = false
end
end