Debian Codegraph @

ansible_collections/dellemc/unity/docs/modules/nasserver.rst

raw
1 .. _nasserver_module:
2
3
4 nasserver -- Manage NAS servers on Unity storage system
5 =======================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing NAS servers on Unity storage system includes get, modification to the NAS servers.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - A Dell Unity Storage device version 5.1 or later.
24 - Ansible-core 2.17 or later.
25 - Python 3.11, or 3.12.
26 - Storops Python SDK 1.2.12.
27
28
29
30 Parameters
31 ----------
32
33 nas_server_id (optional, str, None)
34 The ID of the NAS server.
35
36 Either *nas_server_name* or *nas_server_id* is required to perform the task.
37
38 The parameters *nas_server_name* and *nas_server_id* are mutually exclusive.
39
40
41 nas_server_name (optional, str, None)
42 The Name of the NAS server.
43
44 Either *nas_server_name* or *nas_server_id* is required to perform the task.
45
46 The parameters *nas_server_name* and *nas_server_id* are mutually exclusive.
47
48
49 nas_server_new_name (optional, str, None)
50 The new name of the NAS server.
51
52 It can be mentioned during modification of the NAS server.
53
54
55 is_replication_destination (optional, bool, None)
56 It specifies whether the NAS server is a replication destination.
57
58 It can be mentioned during modification of the NAS server.
59
60
61 is_backup_only (optional, bool, None)
62 It specifies whether the NAS server is used as backup only.
63
64 It can be mentioned during modification of the NAS server.
65
66
67 is_multiprotocol_enabled (optional, bool, None)
68 This parameter indicates whether multiprotocol sharing mode is enabled.
69
70 It can be mentioned during modification of the NAS server.
71
72
73 allow_unmapped_user (optional, bool, None)
74 This flag is used to mandatorily disable access in case of any user mapping failure.
75
76 If ``true``, then enable access in case of any user mapping failure.
77
78 If ``false``, then disable access in case of any user mapping failure.
79
80 It can be mentioned during modification of the NAS server.
81
82
83 default_windows_user (optional, str, None)
84 Default windows user name used for granting access in the case of Unix to Windows user mapping failure.
85
86 It can be mentioned during modification of the NAS server.
87
88
89 default_unix_user (optional, str, None)
90 Default Unix user name used for granting access in the case of Windows to Unix user mapping failure.
91
92 It can be mentioned during modification of the NAS server.
93
94
95 enable_windows_to_unix_username_mapping (optional, bool, None)
96 This parameter indicates whether a Unix to/from Windows user name mapping is enabled.
97
98 It can be mentioned during modification of the NAS server.
99
100
101 is_packet_reflect_enabled (optional, bool, None)
102 If the packet has to be reflected, then this parameter has to be set to ``true``.
103
104 It can be mentioned during modification of the NAS server.
105
106
107 current_unix_directory_service (optional, str, None)
108 This is the directory service used for querying identity information for UNIX (such as UIDs, GIDs, net groups).
109
110 It can be mentioned during modification of the NAS server.
111
112
113 replication_params (optional, dict, None)
114 Settings required for enabling replication.
115
116
117 destination_nas_server_name (optional, str, None)
118 Name of the destination nas server.
119
120 Default value will be source nas server name prefixed by 'DR_'.
121
122
123 replication_mode (optional, str, None)
124 The replication mode.
125
126 This is mandatory to enable replication.
127
128
129 rpo (optional, int, None)
130 Maximum time to wait before the system syncs the source and destination LUNs.
131
132 The *rpo* option should be specified if the *replication_mode* is ``asynchronous``.
133
134 The value should be in range of ``5`` to ``1440``.
135
136
137 replication_type (optional, str, None)
138 Type of replication.
139
140
141 remote_system (optional, dict, None)
142 Details of remote system to which the replication is being configured.
143
144 The *remote_system* option should be specified if the *replication_type* is ``remote``.
145
146
147 remote_system_host (True, str, None)
148 IP or FQDN for remote Unity unisphere Host.
149
150
151 remote_system_username (True, str, None)
152 User name of remote Unity unisphere Host.
153
154
155 remote_system_password (True, str, None)
156 Password of remote Unity unisphere Host.
157
158
159 remote_system_verifycert (optional, bool, True)
160 Boolean variable to specify whether or not to validate SSL certificate of remote Unity unisphere Host.
161
162 ``true`` - Indicates that the SSL certificate should be verified.
163
164 ``false`` - Indicates that the SSL certificate should not be verified.
165
166
167 remote_system_port (optional, int, 443)
168 Port at which remote Unity unisphere is hosted.
169
170
171
172 destination_pool_name (optional, str, None)
173 Name of pool to allocate destination Luns.
174
175 Mutually exclusive with *destination_pool_id*.
176
177
178 destination_pool_id (optional, str, None)
179 Id of pool to allocate destination Luns.
180
181 Mutually exclusive with *destination_pool_name*.
182
183
184 destination_sp (optional, str, None)
185 Storage process of destination nas server
186
187
188 is_backup (optional, bool, None)
189 Indicates if the destination nas server is backup.
190
191
192 replication_name (optional, str, None)
193 User defined name for replication session.
194
195
196 new_replication_name (optional, str, None)
197 Replication name to rename the session to.
198
199
200
201 replication_state (optional, str, None)
202 State of the replication.
203
204
205 replication_reuse_resource (optional, bool, None)
206 This parameter indicates if existing NAS Server is to be used for replication.
207
208
209 state (True, str, None)
210 Define the state of NAS server on the array.
211
212 The value present indicates that NAS server should exist on the system after the task is executed.
213
214 In this release deletion of NAS server is not supported. Hence, if state is set to ``absent`` for any existing NAS server then error will be thrown.
215
216 For any non-existing NAS server, if state is set to ``absent`` then it will return None.
217
218
219 unispherehost (True, str, None)
220 IP or FQDN of the Unity management server.
221
222
223 username (True, str, None)
224 The username of the Unity management server.
225
226
227 password (True, str, None)
228 The password of the Unity management server.
229
230
231 validate_certs (optional, bool, True)
232 Boolean variable to specify whether or not to validate SSL certificate.
233
234 ``true`` - Indicates that the SSL certificate should be verified.
235
236 ``false`` - Indicates that the SSL certificate should not be verified.
237
238
239 port (optional, int, 443)
240 Port number through which communication happens with Unity management server.
241
242
243
244
245
246 Notes
247 -----
248
249 .. note::
250 - The *check_mode* is not supported.
251 - The modules present in this collection named as 'dellemc.unity' are built to support the Dell Unity storage platform.
252
253
254
255
256 Examples
257 --------
258
259 .. code-block:: yaml+jinja
260
261
262
263 - name: Get Details of NAS Server
264 nasserver:
265 unispherehost: "{{unispherehost}}"
266 username: "{{username}}"
267 password: "{{password}}"
268 validate_certs: "{{validate_certs}}"
269 nas_server_name: "{{nas_server_name}}"
270 state: "present"
271
272 - name: Modify Details of NAS Server
273 nasserver:
274 unispherehost: "{{unispherehost}}"
275 username: "{{username}}"
276 password: "{{password}}"
277 validate_certs: "{{validate_certs}}"
278 nas_server_name: "{{nas_server_name}}"
279 nas_server_new_name: "updated_sample_nas_server"
280 is_replication_destination: False
281 is_backup_only: False
282 is_multiprotocol_enabled: True
283 allow_unmapped_user: True
284 default_unix_user: "default_unix_sample_user"
285 default_windows_user: "default_windows_sample_user"
286 enable_windows_to_unix_username_mapping: True
287 current_unix_directory_service: "LDAP"
288 is_packet_reflect_enabled: True
289 state: "present"
290
291 - name: Enable replication for NAS Server on Local System
292 nasserver:
293 unispherehost: "{{unispherehost}}"
294 username: "{{username}}"
295 password: "{{password}}"
296 validate_certs: "{{validate_certs}}"
297 nas_server_id: "nas_10"
298 replication_reuse_resource: False
299 replication_params:
300 replication_name: "test_replication"
301 destination_nas_server_name: "destination_nas"
302 replication_mode: "asynchronous"
303 rpo: 60
304 replication_type: "local"
305 destination_pool_name: "Pool_Ansible_Neo_DND"
306 destination_sp: "SPA"
307 is_backup: True
308 replication_state: "enable"
309 state: "present"
310
311 - name: Enable replication for NAS Server on Remote System
312 nasserver:
313 unispherehost: "{{unispherehost}}"
314 username: "{{username}}"
315 password: "{{password}}"
316 validate_certs: "{{validate_certs}}"
317 nas_server_name: "dummy_nas"
318 replication_reuse_resource: False
319 replication_params:
320 replication_name: "test_replication"
321 destination_nas_server_name: "destination_nas"
322 replication_mode: "asynchronous"
323 rpo: 60
324 replication_type: "remote"
325 remote_system:
326 remote_system_host: '10.10.10.10'
327 remote_system_verifycert: False
328 remote_system_username: 'test1'
329 remote_system_password: 'test1!'
330 destination_pool_name: "fastVP_pool"
331 destination_sp: "SPA"
332 is_backup: True
333 replication_state: "enable"
334 state: "present"
335
336 - name: Enable replication for NAS Server on Remote System in existing NAS Server
337 nasserver:
338 unispherehost: "{{unispherehost}}"
339 username: "{{username}}"
340 password: "{{password}}"
341 validate_certs: "{{validate_certs}}"
342 nas_server_name: "dummy_nas"
343 replication_reuse_resource: True
344 replication_params:
345 destination_nas_server_name: "destination_nas"
346 replication_mode: "asynchronous"
347 rpo: 60
348 replication_type: "remote"
349 replication_name: "test_replication"
350 remote_system:
351 remote_system_host: '10.10.10.10'
352 remote_system_verifycert: False
353 remote_system_username: 'test1'
354 remote_system_password: 'test1!'
355 destination_pool_name: "fastVP_pool"
356 replication_state: "enable"
357 state: "present"
358
359 - name: Modify replication on the nasserver
360 nasserver:
361 unispherehost: "{{unispherehost}}"
362 username: "{{username}}"
363 password: "{{password}}"
364 validate_certs: "{{validate_certs}}"
365 nas_server_name: "dummy_nas"
366 replication_params:
367 replication_name: "test_repl"
368 new_replication_name: "test_repl_updated"
369 replication_mode: "asynchronous"
370 rpo: 50
371 replication_state: "enable"
372 state: "present"
373
374 - name: Disable replication on the nasserver
375 nasserver:
376 unispherehost: "{{unispherehost}}"
377 username: "{{username}}"
378 password: "{{password}}"
379 validate_certs: "{{validate_certs}}"
380 nas_server_name: "dummy_nas"
381 replication_state: "disable"
382 state: "present"
383
384 - name: Disable replication by specifying replication_name on the nasserver
385 nasserver:
386 unispherehost: "{{unispherehost}}"
387 username: "{{username}}"
388 password: "{{password}}"
389 validate_certs: "{{validate_certs}}"
390 nas_server_name: "dummy_nas"
391 replication_params:
392 replication_name: "test_replication"
393 replication_state: "disable"
394 state: "present"
395
396
397
398 Return Values
399 -------------
400
401 changed (always, bool, True)
402 Whether or not the resource has changed.
403
404
405 nas_server_details (When NAS server exists., dict, {'allow_unmapped_user': None, 'cifs_server': {'UnityCifsServerList': [{'UnityCifsServer': {'hash': 8761756885270, 'id': 'cifs_34'}}]}, 'current_sp': {'UnityStorageProcessor': {'hash': 8761756885273, 'id': 'spb'}}, 'current_unix_directory_service': 'NasServerUnixDirectoryServiceEnum.NIS', 'default_unix_user': None, 'default_windows_user': None, 'existed': True, 'file_dns_server': {'UnityFileDnsServer': {'hash': 8761756885441, 'id': 'dns_12'}}, 'file_interface': {'UnityFileInterfaceList': [{'UnityFileInterface': {'hash': 8761756889908, 'id': 'if_37'}}]}, 'filesystems': None, 'hash': 8761757005084, 'health': {'UnityHealth': {'hash': 8761756867588}}, 'home_sp': {'UnityStorageProcessor': {'hash': 8761756867618, 'id': 'spb'}}, 'id': 'nas_10', 'is_backup_only': False, 'is_multi_protocol_enabled': False, 'is_packet_reflect_enabled': False, 'is_replication_destination': False, 'is_replication_enabled': True, 'is_windows_to_unix_username_mapping_enabled': None, 'name': 'dummy_nas', 'pool': {'UnityPool': {'hash': 8761756885360, 'id': 'pool_7'}}, 'preferred_interface_settings': {'UnityPreferredInterfaceSettings': {'hash': 8761756885438, 'id': 'preferred_if_10'}}, 'replication_type': 'ReplicationTypeEnum.REMOTE', 'size_allocated': 3489660928, 'tenant': None, 'virus_checker': {'UnityVirusChecker': {'hash': 8761756885426, 'id': 'cava_10'}}})
406 The NAS server details.
407
408
409 name (, str, )
410 Name of the NAS server.
411
412
413 id (, str, )
414 ID of the NAS server.
415
416
417 allow_unmapped_user (, bool, )
418 Enable/disable access status in case of any user mapping failure.
419
420
421 current_unix_directory_service (, str, )
422 Directory service used for querying identity information for UNIX (such as UIDs, GIDs, net groups).
423
424
425 default_unix_user (, str, )
426 Default Unix user name used for granting access in the case of Windows to Unix user mapping failure.
427
428
429 default_windows_user (, str, )
430 Default windows user name used for granting access in the case of Unix to Windows user mapping failure.
431
432
433 is_backup_only (, bool, )
434 Whether the NAS server is used as backup only.
435
436
437 is_multi_protocol_enabled (, bool, )
438 Indicates whether multiprotocol sharing mode is enabled.
439
440
441 is_packet_reflect_enabled (, bool, )
442 If the packet reflect has to be enabled.
443
444
445 is_replication_destination (, bool, )
446 If the NAS server is a replication destination then True.
447
448
449 is_windows_to_unix_username_mapping_enabled (, bool, )
450 Indicates whether a Unix to/from Windows user name mapping is enabled.
451
452
453
454
455
456
457 Status
458 ------
459
460
461
462
463
464 Authors
465 ~~~~~~~
466
467 - P Srinivas Rao (@srinivas-rao5) <[email protected]>
468