-
Notifications
You must be signed in to change notification settings - Fork 10
/
inventory_2tierv2_dcn.yml
175 lines (175 loc) · 7.69 KB
/
inventory_2tierv2_dcn.yml
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
##########################
# Aruba DCN Workflows
# Example Inventory
##########################
all:
children: # Defining High Level Groups
aoscx_switches: # Group for all necessary Ansible connection CX variables
vars:
ansible_user: admin # switch login user - used by aoscx Collection
ansible_password: admin # switch login password - used by aoscx Collection
ansible_connection: arubanetworks.aoscx.aoscx # DO NOT CHANGE
ansible_network_os: arubanetworks.aoscx.aoscx # DO NOT CHANGE
ansible_httpapi_use_ssl: True # DO NOT CHANGE
ansible_httpapi_validate_certs: False # Will change depending on your environment
ansible_acx_no_proxy: True # REMOVE
ansible_aoscx_validate_certs: False
ansible_aoscx_use_proxy: False
children:
DC-RSV: # Group for common variables within a specific DC Zone/Pod
vars:
hostname: "{{inventory_hostname}}" # hostname of the device is set to the device's inventory name
group: RSVDC
config_path: "configs/" # Destination directory for generated switch configurations
timezone: "america/los_angeles"
mtu: 9198
stp_config_name: "{{group}}"
ntp_servers: [10.2.120.98, 10.2.120.99]
ntp_vrf: mgmt
dns_servers: [10.2.120.98, 10.2.120.99]
dns_domain: example.local
system_location: DC01, Roseville, CA
system_contact: netadmin@orangetme.local
ospf_area: 0.0.0.0
tacacs_servers:
- host: 10.2.120.94
ciphertext: AQBapTMGmLBPD14dwIgtfKtG6BbiEjvtTBdL/mC3bEo91XegCQAAAFUz3moFw0EX0A==
- host: 10.2.120.94
ciphertext: AQBapTsQeZay/1Mw1ivHkhdC7MGDGFcUz0oUsSNzdQf+gUw0CQAAABFOhXhwqm+UpA==
host_vlans: # VLANs to be created on devices for DC host traffic
- id: 101
name: PROD-WEB
- id: 102
name: PROD-DB
# VSX information
vsx_isl_lagid: 256
vsx_keepalive_vrf: mgmt
children:
core:
vars:
config_template: templates/2TierV2/core.j2
# VSX information
vsx_system_mac: 02:00:00:00:10:00
vsx_keepalive_ip_primary: 172.16.117.101
vsx_keepalive_ip_secondary: 172.16.117.102
vsx_isl_ports: [1/1/31, '1/1/32']
mclags:
- id: 1
interfaces: ['1/1/1', '1/1/2']
allowed_vlans: ['all']
mtu: 9198
description: RACK-1
- id: 2
interfaces: ['1/1/3', '1/1/4']
allowed_vlans: ['all']
mtu: 9198
description: RACK-2
- id: 101
interfaces: ['1/1/29']
allowed_vlans: [4000]
mtu: 9198
description: EXT-FW1-1
- id: 102
interfaces: ['1/1/30']
allowed_vlans: [4000]
mtu: 9198
description: EXT-FW1-2
hosts:
RSVDC-CORE1-1:
ansible_host: 172.16.117.101
vsx_role: primary
loopback0_ip: 10.250.12.1
routing_vlans:
- id: 4000
name: CORE-ROUTING-SVI
ip_address: 10.255.12.1
# SVI information for DC host VLANs - used in jinja2 template
host_vlans:
- id: 101
name: PROD-WEB
ip_address: 10.12.101.2
active_gateway_mac: 02:00:0a:01:65:01
active_gateway_ip: 10.12.101.1
- id: 102
name: PROD-DB
ip_address: 10.12.102.2
active_gateway_mac: 02:00:0a:01:65:01
active_gateway_ip: 10.12.102.1
RSVDC-CORE1-2:
ansible_host: 172.16.117.102
loopback0_ip: 10.250.12.2
vsx_role: secondary
routing_vlans:
- id: 4000
name: CORE-ROUTING-SVI
ip_address: 10.255.12.2
# SVI information for DC host VLANs - used in jinja2 template
host_vlans:
- id: 101
name: PROD-WEB
ip_address: 10.12.101.3
active_gateway_mac: 02:00:0a:01:65:01
active_gateway_ip: 10.12.101.1
- id: 102
name: PROD-DB
ip_address: 10.12.102.3
active_gateway_mac: 02:00:0a:01:65:01
active_gateway_ip: 10.12.102.1
access:
vars:
config_template: templates/2TierV2/access.j2
speed_interface_group_10g: [1] # Enables 10g speed on specified interface groups, remove variable if unused
vsx_isl_ports: ['1/1/49', '1/1/50']
vsx_system_mac: 02:00:00:00:10:01
# Access devices are grouped by VSX pairs,
# names of vsx_pairs can be anything alphanumeric
# devices do not have to be physically in the same "vsx_pair"
children:
rack1:
vars:
# VSX information
vsx_system_mac: 02:00:00:00:10:01
vsx_keepalive_ip_primary: 172.16.117.103
vsx_keepalive_ip_secondary: 172.16.117.104
mclags:
- id: 1
interfaces: [1/1/1]
allowed_vlans: ['all']
mtu: 9198
description: ESXi-01
- id: 255
interfaces: [1/1/53, 1/1/54]
allowed_vlans: ['all']
mtu: 9198
description: DC-CORE
hosts:
RSVDC-ACCESS1-1:
ansible_host: 172.16.117.103 # IP address of the switch, change to match
vsx_role: primary
RSVDC-ACCESS1-2:
ansible_host: 172.16.117.104 # IP address of the switch, change to match
vsx_role: secondary
rack2:
vars:
# VSX information
vsx_system_mac: 02:00:00:00:10:02
vsx_keepalive_ip_primary: 172.16.117.105 # IP address of the switch, change to match
vsx_keepalive_ip_secondary: 172.16.117.106 # IP address of the switch, change to match
mclags:
- id: 1
interfaces: [1/1/1]
allowed_vlans: ['all']
mtu: 9198
description: ESXi-02
- id: 255
interfaces: [1/1/53, 1/1/54]
allowed_vlans: ['all']
mtu: 9198
description: DC-CORE
hosts:
RSVDC-ACCESS2-1:
ansible_host: 172.16.117.105 # IP address of the switch, change to match
vsx_role: primary
RSVDC-ACCESS2-2:
ansible_host: 172.16.117.106 # IP address of the switch, change to match
vsx_role: secondary