-
Notifications
You must be signed in to change notification settings - Fork 1
/
vars_example_nfs.yml
389 lines (357 loc) · 20.7 KB
/
vars_example_nfs.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
---
# --------------------------------------------------------------------------------------------------------------------
# Cluster Settings
#
# cluster_name: "LabCluster"
# cluster_hostname: 192.168.0.10 # IP address or DNS resolvable name
# cluster_username: admin
# cluster_password: "clusterpasswd" # Modify to suit local security requirements
# cluster_ntp_servers: [192.168.0.253,192,168.0.254] # Leave BLANK to skip task
# cluster_dns_ips: [10.0.10.2,10.0.10.3] # Leave BLANK to skip task
# cluster_search_domains: [lab.local] # Leave BLANK to skip task
#
# --------------------------------------------------------------------------------------------------------------------
cluster_name: ots1
cluster_hostname: 10.0.0.210
cluster_username: admin
cluster_password:
cluster_ntp_servers: [216.239.35.0,216.239.35.4,216.239.35.8,216.239.35.12]
cluster_dns_ips: [10.0.0.203]
cluster_search_domains: [ntap.local]
# --------------------------------------------------------------------------------------------------------------------
# Cluster Nodes
#
# - add one line for each node
# - MUST have at least 1 node
# - controls node and service processor settings
# - primary source for looping through node names and settings
# - if diskcount is blank then all unassigned disks will be assigned to that node
#
# cluster_nodes:
# - { node_name: LabCluster-01, root_aggr: aggr0_LabCluster_01, diskcount: , sp_ip: 192.168.0.13, sp_netmask: 255.255.255.0, sp_gateway: 192.168.0.1 }
# - { node_name: LabCluster-02, root_aggr: aggr0_LabCluster_02, diskcount: , sp_ip: 192.168.0.14, sp_netmask: 255.255.255.0, sp_gateway: 192.168.0.1 }
#
# --------------------------------------------------------------------------------------------------------------------
cluster_nodes:
- { node_name: "{{ cluster_name }}-01", root_aggr: "aggr_{{ cluster_name }}_01", diskcount: , sp_ip: , sp_netmask: , sp_gateway: }
# --------------------------------------------------------------------------------------------------------------------
# Assign Disks
#
# - "diskcount:" setting in "cluster_nodes" (above) determines the number of disks assigned to each node
# - if "diskcount" is BLANK than all unassigned disks will be assigned to that node
#
# --------------------------------------------------------------------------------------------------------------------
assign_disks: false
# --------------------------------------------------------------------------------------------------------------------
# Enable High Availability (HA)
# --------------------------------------------------------------------------------------------------------------------
enable_ha: false
# --------------------------------------------------------------------------------------------------------------------
# Disable AutoSupport
# --------------------------------------------------------------------------------------------------------------------
disable_asup: true
# --------------------------------------------------------------------------------------------------------------------
# Enable CDP on all nodes
# --------------------------------------------------------------------------------------------------------------------
enable_cdp: true
# --------------------------------------------------------------------------------------------------------------------
# Zero Spares - Runs in the background and could potentially blocking aggregate creation until done
# --------------------------------------------------------------------------------------------------------------------
#zero_spares: false
# --------------------------------------------------------------------------------------------------------------------
# Save ONTAP configuration to JSON file on Ansible controller - runs na_ontap_info at end of role
#
# The directory will be created if it does not exist - and must end with a "/"
#
# --------------------------------------------------------------------------------------------------------------------
save_ontap_facts: true
save_ontap_facts_dir: "{{ playbook_dir }}/clusterinfo/"
# --------------------------------------------------------------------------------------------------------------------
# Login Banner
#
# Leave BLANK to skip task
#
# This is the banner displayed BEFORE a login and will be set for all SVMs
# The cluster MOTD will be displayed
#
# --------------------------------------------------------------------------------------------------------------------
banner: "You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions: -The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations. -At any time, the USG may inspect and seize data stored on this IS. -Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose. -This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy. -Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details."
# --------------------------------------------------------------------------------------------------------------------
# Message of the Day
#
# Leave BLANK to skip task
#
# --------------------------------------------------------------------------------------------------------------------
motd: "\\v"
# --------------------------------------------------------------------------------------------------------------------
# Time Zone
#
# Leave BLANK to skip task
#
# References:
#
# Time Zones - https://library.netapp.com/ecmdocs/ECMP1368852/html/GUID-D3B8A525-67A2-4BEE-99DB-EF52D6744B5F.html
# GMT offset - https://library.netapp.com/ecmdocs/ECMP1368852/html/GUID-8715466A-B52B-4A48-8163-08D3C0014D76.html
# Geo Regions - https://library.netapp.com/ecmdocs/ECMP1368852/html/GUID-48AD434D-433B-4208-8D9E-C3696707E20C.html
#
# tz: "America/Denver"
#
# --------------------------------------------------------------------------------------------------------------------
tz: "Etc/UTC"
# --------------------------------------------------------------------------------------------------------------------
# Licenses
#
# Leave BLANK to skip task BUT must include licenses for protocols being implemented
#
# Comma-separated string
#
# license_codes: "AAAAAAAAAAAAA,BBBBBBBBBBBBB,CCCCCCCCCCCCC"
#
# --------------------------------------------------------------------------------------------------------------------
license_codes:
# --------------------------------------------------------------------------------------------------------------------
# SNMP
#
# Leave BLANK to skip task
#
# snmp_community_name: netapp
#
# --------------------------------------------------------------------------------------------------------------------
snmp_community_name:
# --------------------------------------------------------------------------------------------------------------------
# Ports to remove from the Default broadcast domain
#
# Leave BLANK to skip task
#
# remove_ports: [e0c,e0d]
#
# --------------------------------------------------------------------------------------------------------------------
remove_ports:
# --------------------------------------------------------------------------------------------------------------------
# Interface Groups
#
# Leave BLANK to skip task
#
# ifgroups:
# - { ifgroup_name: a0a, ifgroup_ports: [e0c,e0d], ifgroup_mtu: 9000 }
#
# --------------------------------------------------------------------------------------------------------------------
ifgroups:
# --------------------------------------------------------------------------------------------------------------------
# VLAN ID / Port
#
# Leave BLANK to skip task
#
# vlans:
# - { vlan_id: 101, vlan_port: a0a }
# - { vlan_id: 102, vlan_port: a0a }
# - { vlan_id: 888, vlan_port: e0g }
#
# --------------------------------------------------------------------------------------------------------------------
vlans:
# --------------------------------------------------------------------------------------------------------------------
# Broadcast Domains
#
# Leave BLANK to skip task
#
# broadcast_domains:
# - { bd_name: Data, bd_mtu: 9000, bd_ports: [e0c,e0d] }
# - { bd_name: Data2, bd_mtu: 9000, bd_ports: [a0a-101] }
#
# --------------------------------------------------------------------------------------------------------------------
broadcast_domains:
- { bd_name: bdData, bd_mtu: 1500, bd_ports: [e0b,e0c] }
# --------------------------------------------------------------------------------------------------------------------
# Aggregates
#
# Leave BLANK to skip task - but you really need at least one to do anything ;)
#
# aggregates:
# - { aggregate_name: aggr_data1, aggregate_node: "{{ cluster_name }}-01", aggregate_disk_count: 11, aggregate_raid_size: 11, aggregate_raid_type: raid_dp, mirrored: false }
# - { aggregate_name: aggr_data2, aggregate_node: "{{ cluster_name }}-02", aggregate_disk_count: 11, aggregate_raid_size: 11, aggregate_raid_type: raid_dp, mirrored: false }
#
# --------------------------------------------------------------------------------------------------------------------
aggregates:
- { aggregate_name: aggr_data1, aggregate_node: "{{ cluster_name }}-01", aggregate_disk_count: 1, aggregate_raid_size: 8, aggregate_raid_type: raid0, mirrored: false }
# --------------------------------------------------------------------------------------------------------------------
# Storage Virtual Machines (SVM / vServer)
#
# Leave BLANK to skip task - but you really need at least one to do anything ;)
#
# svms:
# - { svm_name: svmData, svm_aggregate: aggr_data1, svm_root_vol: svmData_root, svm_protocol: iscsi }
# - { svm_name: svmNFS, svm_aggregate: aggr_data2, svm_root_vol: svmNFS_root, svm_protocol: nfs }
# - { svm_name: svmCIFS, svm_aggregate: aggr_data1, svm_root_vol: svmCIFS_root, svm_protocol: cifs }
# - { svm_name: svmNAS, svm_aggregate: aggr_data2, svm_root_vol: svmNAS_root, svm_protocol: 'cifs,nfs'}
#
# --------------------------------------------------------------------------------------------------------------------
svms:
- { svm_name: svmNFS, svm_aggregate: aggr_data1, svm_root_vol: svmNFS_root, svm_protocol: nfs }
# --------------------------------------------------------------------------------------------------------------------
# SVM DNS Settings
#
# Leave BLANK to skip task
#
# svm_dns:
# - { svm_name: svmCIFS, dns_domains: lab.local, dns_nameservers: 172.32.0.40 }
#
# --------------------------------------------------------------------------------------------------------------------
svm_dns:
# --------------------------------------------------------------------------------------------------------------------
# CIFS Servers
#
# Leave BLANK to skip task
#
# cifs_servers:
# - { svm_name: svmCIFS, domain: lab.local, cifs_server_name: svrCIFS, force: true, domain_admin_username: administrator, domain_admin_password: 'Netapp123!', ou: }
#
# --------------------------------------------------------------------------------------------------------------------
cifs_servers:
# --------------------------------------------------------------------------------------------------------------------
# Intercluster LIFs
#
# Leave BLANK to skip task
#
# If used, the system requires at least 1 LIF on EVERY node in the cluster
#
# ic_lifs:
# - { ic_name: intercluster_1, address: 10.0.10.245, netmask: 255.255.255.0, home_node: "{{ cluster_name }}-01", home_port: e0a }
# - { ic_name: intercluster_2, address: 10.0.10.246, netmask: 255.255.255.0, home_node: "{{ cluster_name }}-02", home_port: e0a }
#
# --------------------------------------------------------------------------------------------------------------------
ic_lifs:
- { ic_name: ic_1, address: 10.0.00.212, netmask: 255.255.255.0, home_node: "{{ cluster_name }}-01", home_port: e0a }
# --------------------------------------------------------------------------------------------------------------------
# Logical Interfaces
#
# Leave BLANK to skip task - but you really need at least one to access data ;)
#
# lifs:
# - { lif_name: lif_svmData_iscsi_1, svm_name: svmData, home_node: "{{ cluster_name }}-01", home_port: "e0c", protocol: iscsi, address: 192.168.0.24, netmask: 255.255.255.0 }
# - { lif_name: lif_svmData_iscsi_2, svm_name: svmData, home_node: "{{ cluster_name }}-01", home_port: "e0d", protocol: iscsi, address: 192.168.0.26, netmask: 255.255.255.0 }
# - { lif_name: lif_svmData_iscsi_3, svm_name: svmData, home_node: "{{ cluster_name }}-02", home_port: "e0c", protocol: iscsi, address: 192.168.0.25, netmask: 255.255.255.0 }
# - { lif_name: lif_svmData_iscsi_4, svm_name: svmData, home_node: "{{ cluster_name }}-02", home_port: "e0d", protocol: iscsi, address: 192.168.0.27, netmask: 255.255.255.0 }
#
# - { lif_name: lif_svmNFS_lif_1, svm_name: svmNFS, home_node: "{{ cluster_name }}-01", home_port: "e0c", protocol: nfs, address: 192.168.0.28, netmask: 255.255.255.0 }
# - { lif_name: lif_svmCIFS_lif_1, svm_name: svmCIFS, home_node: "{{ cluster_name }}-02", home_port: "e0d", protocol: nfs, address: 192.168.0.29, netmask: 255.255.255.0 }
#
# --------------------------------------------------------------------------------------------------------------------
lifs:
- { lif_name: lif_svmNFS_1, svm_name: svmNFS, home_node: "{{ cluster_name }}-01", home_port: "e0b", protocol: nfs, address: 10.0.0.215, netmask: 255.255.255.0 }
# --------------------------------------------------------------------------------------------------------------------
# Routes
#
# Leave BLANK to skip task
#
# routes:
# - { svm_name: svmData, destination: "0.0.0.0/0", gateway: 10.0.10.1, metric: 20 }
#
# --------------------------------------------------------------------------------------------------------------------
routes:
- { svm_name: svmNFS, destination: "0.0.0.0/0", gateway: 10.0.0.1, metric: 20 }
# --------------------------------------------------------------------------------------------------------------------
# Job Schedules
#
# Leave BLANK to skip task
#
# job_schedules:
# - { job_name: dedupe_0100, job_hours: 01, job_minutes: 00 }
# - { job_name: dedupe_0200, job_hours: 02, job_minutes: 00 }
#
# --------------------------------------------------------------------------------------------------------------------
job_schedules:
# --------------------------------------------------------------------------------------------------------------------
# Efficiency Policies
#
# Leave BLANK to skip task
#
# efficiency_policies:
# - { policy_name: ep_dedupe_0100, type: scheduled, schedule: dedupe_0100, qos_policy: background }
# - { policy_name: ep_dedupe_0200, type: scheduled, schedule: dedupe_0200, qos_policy: background }
#
# --------------------------------------------------------------------------------------------------------------------
efficiency_policies:
# --------------------------------------------------------------------------------------------------------------------
# Initiators
#
# - comma-separated string
# - only used if adding multiple IQNs/WWNs to a single iGroup
# - not required / make as many as you need (i.e. initiators1, initiators2,...)
#
# initiators: "iqn.1998-01.com.vmware:esxi1-325f37e2,iqn.1998-01.com.vmware:esxi2-10e5f810"
#
# --------------------------------------------------------------------------------------------------------------------
initiators:
# --------------------------------------------------------------------------------------------------------------------
# iGroups
#
# Leave BLANK to skip task
#
# Provide a single initiator or create a variable (see above) to create a list of initiators
#
# igroups:
# - { igroup_name: esx1, svm_name: svmData, group_type: iscsi, ostype: vmware, initiator: "iqn.1998-01.com.vmware:esxi1-325f37e2" }
# - { igroup_name: esx_servers, svm_name: svmData, group_type: iscsi, ostype: vmware, initiator: "{{ initiators }}" }
#
# --------------------------------------------------------------------------------------------------------------------
igroups:
# --------------------------------------------------------------------------------------------------------------------
# NAS Volumes
#
# Leave BLANK to skip task
#
# NFS Only
# --------
# volumes_nas:
# - { volume_name: vol_nfs1, size: 1, size_unit: tb, aggregate_name: aggr_data1, protocol: nfs, export_policy_name: nfs_share, svm_name: svmData2, client: 192.168.1.0/24, ro: sys, rw: sys, su: sys, policy: default }
# - { volume_name: vol_nfs2, size: 2, size_unit: tb, aggregate_name: aggr_data2, protocol: nfs, export_policy_name: nfs_share, svm_name: svmData2, client: 192.168.1.0/24, ro: sys, rw: sys, su: sys, policy: default }
#
# CIFS Only
# ---------
# volumes_nas:
# - { volume_name: vol_cifs1, size: 300, size_unit: gb, aggregate_name: aggr_data1, protocol: cifs, share: cifs_share1 }
#
# NFS & CIFS
# ----------
# volumes_nas:
# - { volume_name: vol_nfs_cifs, size: 100, size_unit: gb, aggregate_name: aggr_data1, protocol: nfs, export_policy_name: nfs_share, svm_name: svmData2, client: 192.168.1.0/24, ro: sys, rw: sys, su: sys, policy: default, share: cifs_share }
#
# --------------------------------------------------------------------------------------------------------------------
volumes_nas:
- { volume_name: vol_nfs1, size: 100, size_unit: gb, aggregate_name: aggr_data1, protocol: nfs, export_policy_name: nfs_share, svm_name: svmNFS, client: 10.0.0.0/24, ro: sys, rw: sys, su: sys, policy: default }
- { volume_name: vol_nfs2, size: 150, size_unit: gb, aggregate_name: aggr_data1, protocol: nfs, export_policy_name: nfs_share, svm_name: svmNFS, client: 10.0.0.0/24, ro: sys, rw: sys, su: sys, policy: default }
# --------------------------------------------------------------------------------------------------------------------
# SAN Volumes
#
# Leave BLANK to skip task
#
# volumes_san:
# - { volume_name: "vol_vms", svm_name: "svmData", size: 1, size_unit: tb, aggregate_name: "aggrData", policy: default }
#
# --------------------------------------------------------------------------------------------------------------------
volumes_san:
# --------------------------------------------------------------------------------------------------------------------
# SAN LUNs
#
# Leave BLANK to skip task
#
# luns_san:
# - { lun_name: "lun_vms", lunid: 1, volume_name: "vol_vms", svm_name: "svmData", size: 1, size_unit: tb, ostype: vmware, igroup: esx_servers }
#
# --------------------------------------------------------------------------------------------------------------------
luns_san:
# --------------------------------------------------------------------------------------------------------------------
# Load Sharing Mirrors
#
# Leave BLANK to skip task
#
# Note: lsupdate: "Y" will cause 'initialize' and 'ls-update' commands to be executed on the LS mirror. This is necessary when having multiple LS mirrors on a single SVM.
#
# ls_mirrors:
# - { source_volume: svmData_root, size: 1, size_unit: gb, source_svm_name: svmData, destination_volume: svmData_root_LS, destination_svm_name: svmData, destination_aggregate_name: svmData, schedule: "5min", lsupdate: "N" }
#
# --------------------------------------------------------------------------------------------------------------------
ls_mirrors:
# --------------------------------------------------------------------------------------------------------------------
# END
# --------------------------------------------------------------------------------------------------------------------