Debian Codegraph @

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

raw
1 .. _nfsserver_module:
2
3
4 nfsserver -- Manage NFS server on Unity storage system
5 ======================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing the NFS server on the Unity storage system includes creating NFS server, getting NFS server details and deleting NFS server attributes.
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_name (optional, str, None)
34 Name of the NAS server on which NFS server will be hosted.
35
36
37 nas_server_id (optional, str, None)
38 ID of the NAS server on which NFS server will be hosted.
39
40
41 nfs_server_id (optional, str, None)
42 ID of the NFS server.
43
44
45 host_name (optional, str, None)
46 Host name of the NFS server.
47
48
49 nfs_v4_enabled (optional, bool, None)
50 Indicates whether the NFSv4 is enabled on the NAS server.
51
52
53 is_secure_enabled (optional, bool, None)
54 Indicates whether the secure NFS is enabled.
55
56
57 kerberos_domain_controller_type (optional, str, None)
58 Type of Kerberos Domain Controller used for secure NFS service.
59
60
61 kerberos_domain_controller_username (optional, str, None)
62 Kerberos Domain Controller administrator username.
63
64
65 kerberos_domain_controller_password (optional, str, None)
66 Kerberos Domain Controller administrator password.
67
68
69 is_extended_credentials_enabled (optional, bool, None)
70 Indicates whether support for more than 16 unix groups in a Unix credential.
71
72
73 remove_spn_from_kerberos (optional, bool, True)
74 Indicates whether to remove the SPN from Kerberos Domain Controller.
75
76
77 state (True, str, None)
78 Define whether the NFS server should exist or not.
79
80
81 unispherehost (True, str, None)
82 IP or FQDN of the Unity management server.
83
84
85 username (True, str, None)
86 The username of the Unity management server.
87
88
89 password (True, str, None)
90 The password of the Unity management server.
91
92
93 validate_certs (optional, bool, True)
94 Boolean variable to specify whether or not to validate SSL certificate.
95
96 ``true`` - Indicates that the SSL certificate should be verified.
97
98 ``false`` - Indicates that the SSL certificate should not be verified.
99
100
101 port (optional, int, 443)
102 Port number through which communication happens with Unity management server.
103
104
105
106
107
108 Notes
109 -----
110
111 .. note::
112 - The *check_mode* is supported.
113 - Modify operation for NFS Server is not supported.
114 - When *kerberos_domain_controller_type* is ``UNIX``, *kdc_type* in *nfs_server_details* output is displayed as ``null``.
115 - The modules present in this collection named as 'dellemc.unity' are built to support the Dell Unity storage platform.
116
117
118
119
120 Examples
121 --------
122
123 .. code-block:: yaml+jinja
124
125
126
127 - name: Create NFS server with kdctype as Windows
128 nfsserver:
129 unispherehost: "{{unispherehost}}"
130 username: "{{username}}"
131 password: "{{password}}"
132 validate_certs: "{{validate_certs}}"
133 nas_server_name: "dummy_nas"
134 host_name: "dummy_nas23"
135 is_secure_enabled: True
136 kerberos_domain_controller_type: "WINDOWS"
137 kerberos_domain_controller_username: "administrator"
138 kerberos_domain_controller_password: "Password123!"
139 is_extended_credentials_enabled: True
140 nfs_v4_enabled: True
141 state: "present"
142
143 - name: Create NFS server with kdctype as Unix
144 nfsserver:
145 unispherehost: "{{unispherehost}}"
146 username: "{{username}}"
147 password: "{{password}}"
148 validate_certs: "{{validate_certs}}"
149 nas_server_name: "dummy_nas"
150 host_name: "dummy_nas23"
151 is_secure_enabled: True
152 kerberos_domain_controller_type: "UNIX"
153 is_extended_credentials_enabled: True
154 nfs_v4_enabled: True
155 state: "present"
156
157 - name: Get NFS server details
158 nfsserver:
159 unispherehost: "{{unispherehost}}"
160 username: "{{username}}"
161 password: "{{password}}"
162 validate_certs: "{{validate_certs}}"
163 nas_server_name: "dummy_nas"
164 state: "present"
165
166 - name: Delete NFS server
167 nfsserver:
168 unispherehost: "{{unispherehost}}"
169 username: "{{username}}"
170 password: "{{password}}"
171 validate_certs: "{{validate_certs}}"
172 nas_server_name: "dummy_nas"
173 kerberos_domain_controller_username: "administrator"
174 kerberos_domain_controller_password: "Password123!"
175 unjoin_server_account: False
176 state: "absent"
177
178
179
180 Return Values
181 -------------
182
183 changed (always, bool, True)
184 Whether or not the resource has changed.
185
186
187 nfs_server_details (When NFS server exists, dict, {'credentials_cache_ttl': '0:15:00', 'existed': True, 'file_interfaces': {'UnityFileInterfaceList': [{'UnityFileInterface': {'hash': 8778980109421, 'id': 'if_37'}}]}, 'hash': 8778980109388, 'host_name': 'dummy_nas23.pie.lab.emc.com', 'id': 'nfs_51', 'is_extended_credentials_enabled': True, 'is_secure_enabled': True, 'kdc_type': 'KdcTypeEnum.WINDOWS', 'nas_server': {'UnityNasServer': {'hash': 8778980109412}}, 'nfs_v4_enabled': True, 'servicee_principal_name': None})
188 Details of the NFS server.
189
190
191 credentials_cache_ttl (, str, )
192 Credential cache refresh timeout. Resolution is in minutes. Default value is 15 minutes.
193
194
195 existed (, bool, )
196 Indicates if NFS Server exists.
197
198
199 host_name (, str, )
200 Host name of the NFS server.
201
202
203 id (, str, )
204 Unique identifier of the NFS Server instance.
205
206
207 is_extended_credentials_enabled (, bool, )
208 Indicates whether the NFS server supports more than 16 Unix groups in a Unix credential.
209
210
211 is_secure_enabled (, bool, )
212 Indicates whether secure NFS is enabled on the NFS server.
213
214
215 kdc_type (, str, )
216 Type of Kerberos Domain Controller used for secure NFS service.
217
218
219 nfs_v4_enabled (, bool, )
220 Indicates whether NFSv4 is enabled on the NAS server.
221
222
223 servicee_principal_name (, str, )
224 The Service Principal Name (SPN) for the NFS Server.
225
226
227
228
229
230
231 Status
232 ------
233
234
235
236
237
238 Authors
239 ~~~~~~~
240
241 - Meenakshi Dembi (@dembim) <[email protected]>
242