Debian Codegraph @

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

raw
1 .. _cifsserver_module:
2
3
4 cifsserver -- Manage CIFS server on Unity storage system
5 ========================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing the CIFS server on the Unity storage system includes creating CIFS server, getting CIFS server details and deleting CIFS server.
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 CIFS server will be hosted.
35
36
37 nas_server_id (optional, str, None)
38 ID of the NAS server on which CIFS server will be hosted.
39
40
41 netbios_name (optional, str, None)
42 The computer name of the SMB server in Windows network.
43
44
45 workgroup (optional, str, None)
46 Standalone SMB server workgroup.
47
48
49 local_password (optional, str, None)
50 Standalone SMB server administrator password.
51
52
53 domain (optional, str, None)
54 The domain name where the SMB server is registered in Active Directory.
55
56
57 domain_username (optional, str, None)
58 Active Directory domain user name.
59
60
61 domain_password (optional, str, None)
62 Active Directory domain password.
63
64
65 cifs_server_name (optional, str, None)
66 The name of the CIFS server.
67
68
69 cifs_server_id (optional, str, None)
70 The ID of the CIFS server.
71
72
73 interfaces (optional, list, None)
74 List of file IP interfaces that service CIFS protocol of SMB server.
75
76
77 unjoin_cifs_server_account (optional, bool, None)
78 Keep SMB server account unjoined in Active Directory after deletion.
79
80 ``false`` specifies keep SMB server account joined after deletion.
81
82 ``true`` specifies unjoin SMB server account from Active Directory before deletion.
83
84
85 state (True, str, None)
86 Define whether the CIFS server should exist or not.
87
88
89 unispherehost (True, str, None)
90 IP or FQDN of the Unity management server.
91
92
93 username (True, str, None)
94 The username of the Unity management server.
95
96
97 password (True, str, None)
98 The password of the Unity management server.
99
100
101 validate_certs (optional, bool, True)
102 Boolean variable to specify whether or not to validate SSL certificate.
103
104 ``true`` - Indicates that the SSL certificate should be verified.
105
106 ``false`` - Indicates that the SSL certificate should not be verified.
107
108
109 port (optional, int, 443)
110 Port number through which communication happens with Unity management server.
111
112
113
114
115
116 Notes
117 -----
118
119 .. note::
120 - The *check_mode* is supported.
121 - The modules present in this collection named as 'dellemc.unity' are built to support the Dell Unity storage platform.
122
123
124
125
126 Examples
127 --------
128
129 .. code-block:: yaml+jinja
130
131
132 - name: Create CIFS server belonging to Active Directory
133 cifsserver:
134 unispherehost: "{{unispherehost}}"
135 username: "{{username}}"
136 password: "{{password}}"
137 validate_certs: "{{validate_certs}}"
138 nas_server_name: "test_nas1"
139 cifs_server_name: "test_cifs"
140 domain: "ad_domain"
141 domain_username: "domain_username"
142 domain_password: "domain_password"
143 state: "present"
144
145 - name: Get CIFS server details using CIFS server ID
146 cifsserver:
147 unispherehost: "{{unispherehost}}"
148 username: "{{username}}"
149 password: "{{password}}"
150 validate_certs: "{{validate_certs}}"
151 cifs_server_id: "cifs_37"
152 state: "present"
153
154 - name: Get CIFS server details using NAS server name
155 cifsserver:
156 unispherehost: "{{unispherehost}}"
157 username: "{{username}}"
158 password: "{{password}}"
159 validate_certs: "{{validate_certs}}"
160 nas_server_name: "test_nas1"
161 state: "present"
162
163 - name: Delete CIFS server
164 cifsserver:
165 unispherehost: "{{unispherehost}}"
166 username: "{{username}}"
167 password: "{{password}}"
168 validate_certs: "{{validate_certs}}"
169 cifs_server_id: "cifs_37"
170 unjoin_cifs_server_account: True
171 domain_username: "domain_username"
172 domain_password: "domain_password"
173 state: "absent"
174
175 - name: Create standalone CIFS server
176 cifsserver:
177 unispherehost: "{{unispherehost}}"
178 username: "{{username}}"
179 password: "{{password}}"
180 validate_certs: "{{validate_certs}}"
181 netbios_name: "ANSIBLE_CIFS"
182 workgroup: "ansible"
183 local_password: "Password123!"
184 nas_server_name: "test_nas1"
185 state: "present"
186
187 - name: Get CIFS server details using netbios name
188 cifsserver:
189 unispherehost: "{{unispherehost}}"
190 username: "{{username}}"
191 password: "{{password}}"
192 validate_certs: "{{validate_certs}}"
193 netbios_name: "ANSIBLE_CIFS"
194 state: "present"
195
196 - name: Delete standalone CIFS server
197 cifsserver:
198 unispherehost: "{{unispherehost}}"
199 username: "{{username}}"
200 password: "{{password}}"
201 validate_certs: "{{validate_certs}}"
202 cifs_server_id: "cifs_40"
203 state: "absent"
204
205
206
207 Return Values
208 -------------
209
210 changed (always, bool, True)
211 Whether or not the resource has changed.
212
213
214 cifs_server_details (When CIFS server exists, dict, {'description': None, 'domain': 'xxx.xxx.xxx.com', 'existed': True, 'file_interfaces': {'UnityFileInterfaceList': [{'UnityFileInterface': {'hash': -9223363258905013637, 'id': 'if_43'}}]}, 'hash': -9223363258905010379, 'health': {'UnityHealth': {'hash': 8777949765559}}, 'id': 'cifs_40', 'is_standalone': False, 'last_used_organizational_unit': 'ou=Computers,ou=Dell NAS servers', 'name': 'ansible_cifs', 'nas_server': {'UnityNasServer': {'hash': 8777949765531, 'id': 'nas_18'}}, 'netbios_name': 'ANSIBLE_CIFS', 'smb_multi_channel_supported': True, 'smb_protocol_versions': ['1.0', '2.0', '2.1', '3.0'], 'smbca_supported': True, 'workgroup': None})
215 Details of the CIFS server.
216
217
218 id (, str, )
219 Unique identifier of the CIFS server instance.
220
221
222 name (, str, )
223 User-specified name for the SMB server.
224
225
226 netbios_name (, str, )
227 Computer Name of the SMB server in windows network.
228
229
230 description (, str, )
231 Description of the SMB server.
232
233
234 domain (, str, )
235 Domain name where SMB server is registered in Active Directory.
236
237
238 workgroup (, str, )
239 Windows network workgroup for the SMB server.
240
241
242 is_standalone (, bool, )
243 Indicates whether the SMB server is standalone.
244
245
246 nasServer (, dict, )
247 Information about the NAS server in the storage system.
248
249
250 UnityNasServer (, dict, )
251 Information about the NAS server in the storage system.
252
253
254 id (, str, )
255 Unique identifier of the NAS server instance.
256
257
258
259
260 file_interfaces (, dict, )
261 The file interfaces associated with the NAS server.
262
263
264 UnityFileInterfaceList (, list, )
265 List of file interfaces associated with the NAS server.
266
267
268 UnityFileInterface (, dict, )
269 Details of file interface associated with the NAS server.
270
271
272 id (, str, )
273 Unique identifier of the file interface.
274
275
276
277
278
279 smb_multi_channel_supported (, bool, )
280 Indicates whether the SMB 3.0+ multichannel feature is supported.
281
282
283 smb_protocol_versions (, list, )
284 Supported SMB protocols, such as 1.0, 2.0, 2.1, 3.0, and so on.
285
286
287 smbca_supported (, bool, )
288 Indicates whether the SMB server supports continuous availability.
289
290
291
292
293
294
295 Status
296 ------
297
298
299
300
301
302 Authors
303 ~~~~~~~
304
305 - Akash Shendge (@shenda1) <[email protected]>
306