-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts
186 lines (156 loc) · 3.28 KB
/
hosts
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Groups of hosts are delimited by [header] elements
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
# Ex 1: Ungrouped hosts, specify before any group headers.
## green.example.com
## blue.example.com
## 192.168.100.1
## 192.168.100.10
# Ex 2: A collection of hosts belonging to the 'webservers' group
## [webservers]
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110
# If you have multiple hosts following a pattern you can specify
# them like this:
## www[001:006].example.com
# Ex 3: A collection of database servers in the 'dbservers' group
## [dbservers]
##
## db01.intranet.mydomain.net
## db02.intranet.mydomain.net
## 10.25.1.56
## 10.25.1.57
# Here's another example of host ranges, this time there are no
# leading 0s:
## db-[99:101]-node.example.com
[all:vars]
ansible_connection=local
[spine]
192.202.18.101:22 username=ansible password=Admin@123
[leaf1]
192.202.18.102:22
[leaf2]
192.202.18.103:22
[leaf1:vars]
#login
username=ansible
password=Admin@123
#underlay
if2spine=10GE1/0/1
if2spine_addr=199.1.1.2
if2spine_mask=24
if_loopback=LoopBack1
if_loopback_addr=1.1.1.1
if_loopback_mask=32
#ospf
ospf_process=1
ospf_area=0.0.0.0
ospf_addr1=1.1.1.1
ospf_addr1_mask=32
ospf_addr2=199.1.1.0
ospf_addr2_mask=24
#vxlan
if_nve=Nve1
if_nve_source=1.1.1.1
vni1=10001
vni2=10002
bd_id1=10
bd_id2=20
if_l2sub1=10GE1/0/2.100
if_l2sub1_encap=dot1q
if_l2sub1_cvid=100
if_l2sub2=10GE1/0/2.200
if_l2sub2_encap=dot1q
if_l2sub2_cvid=200
route_distinguisher1=1:100
vpn_target_export1=1:1,10:10
vpn_target_import1=1:1
route_distinguisher2=2:100
vpn_target_export2=2:2,20:20
vpn_target_import2=2:2
vpn_instance=vpn1
vpn_route_distinguisher=100:1
vpn_target1=10:11
vpn_target2=20:11
vpn_vni=1000
if_vbdif1=Vbdif10
if_vbdif1_addr=177.1.1.1
if_vbdif1_mask=24
if_vbdif2=Vbdif20
if_vbdif2_addr=177.1.2.1
if_vbdif2_mask=24
if_vbdif1_mac=0000-5e00-0100
if_vbdif2_mac=0000-5e00-0101
if_ethtrunk_id=100
if_ethtrunk_members=10GE1/0/41
#bgp
bgp_as_number=100
bgp_peer_addr=2.2.2.2
bgp_remote_as=100
[leaf2:vars]
#login
username=ansible
password=Admin@123
#underlay
if2spine=10GE1/0/1
if2spine_addr=199.1.2.2
if2spine_mask=24
if_loopback=LoopBack2
if_loopback_addr=2.2.2.2
if_loopback_mask=32
#ospf
ospf_process=1
ospf_area=0.0.0.0
ospf_addr1=2.2.2.2
ospf_addr1_mask=32
ospf_addr2=199.1.2.0
ospf_addr2_mask=24
#vxlan
if_nve=Nve1
if_nve_source=2.2.2.2
vni1=10001
vni2=10002
bd_id1=10
bd_id2=20
if_l2sub1=10GE1/0/2.100
if_l2sub1_encap=dot1q
if_l2sub1_cvid=100
if_l2sub2=10GE1/0/2.200
if_l2sub2_encap=dot1q
if_l2sub2_cvid=200
route_distinguisher1=1:200
vpn_target_export1=1:1,10:11
vpn_target_import1=1:1
route_distinguisher2=2:200
vpn_target_export2=2:2,20:11
vpn_target_import2=2:2
vpn_instance=vpn2
vpn_route_distinguisher=200:2
vpn_target1=10:10
vpn_target2=20:20
vpn_vni=1000
if_vbdif1=Vbdif10
if_vbdif1_addr=177.1.1.1
if_vbdif1_mask=24
if_vbdif2=Vbdif20
if_vbdif2_addr=177.1.2.1
if_vbdif2_mask=24
if_vbdif1_mac=0000-5e00-0100
if_vbdif2_mac=0000-5e00-0101
if_ethtrunk_id=100
if_ethtrunk_members=10GE1/0/41
#bgp
bgp_as_number=100
bgp_peer_addr=1.1.1.1
bgp_remote_as=100
[leaf:children]
leaf1
leaf2