Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/idrac_timezone_ntp.rst

raw
1 .. _idrac_timezone_ntp_module:
2
3
4 idrac_timezone_ntp -- Configures time zone and NTP on iDRAC
5 ===========================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to configure time zone and NTP on iDRAC.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - omsdk \>= 1.2.488
24 - python \>= 3.9.6
25
26
27
28 Parameters
29 ----------
30
31 setup_idrac_timezone (optional, str, None)
32 Allows to configure time zone on iDRAC.
33
34
35 enable_ntp (optional, str, None)
36 Allows to enable or disable NTP on iDRAC.
37
38
39 ntp_server_1 (optional, str, None)
40 The IP address of the NTP server 1.
41
42
43 ntp_server_2 (optional, str, None)
44 The IP address of the NTP server 2.
45
46
47 ntp_server_3 (optional, str, None)
48 The IP address of the NTP server 3.
49
50
51 share_name (optional, str, None)
52 (deprecated)Network share or a local path.
53
54 This option is deprecated and will be removed in the later version.
55
56
57 share_user (optional, str, None)
58 (deprecated)Network share user name. Use the format 'user@domain' or 'domain\\user' if user is part of a domain. This option is mandatory for CIFS share.
59
60 This option is deprecated and will be removed in the later version.
61
62
63 share_password (optional, str, None)
64 (deprecated)Network share user password. This option is mandatory for CIFS share.
65
66 This option is deprecated and will be removed in the later version.
67
68
69 share_mnt (optional, str, None)
70 (deprecated)Local mount path of the network share with read-write permission for ansible user. This option is mandatory for network shares.
71
72 This option is deprecated and will be removed in the later version.
73
74
75 idrac_ip (True, str, None)
76 iDRAC IP Address.
77
78
79 idrac_user (True, str, None)
80 iDRAC username.
81
82 If the username is not provided, then the environment variable \ :envvar:`IDRAC\_USERNAME`\ is used.
83
84 Example: export IDRAC\_USERNAME=username
85
86
87 idrac_password (True, str, None)
88 iDRAC user password.
89
90 If the password is not provided, then the environment variable \ :envvar:`IDRAC\_PASSWORD`\ is used.
91
92 Example: export IDRAC\_PASSWORD=password
93
94
95 idrac_port (optional, int, 443)
96 iDRAC port.
97
98
99 validate_certs (optional, bool, True)
100 If \ :literal:`false`\ , the SSL certificates will not be validated.
101
102 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
103
104 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
105
106
107 ca_path (optional, path, None)
108 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
109
110
111 timeout (optional, int, 30)
112 The socket level timeout in seconds.
113
114
115
116
117
118 Notes
119 -----
120
121 .. note::
122 - This module requires 'Administrator' privilege for \ :emphasis:`idrac\_user`\ .
123 - Run this module from a system that has direct access to Dell iDRAC.
124 - This module supports both IPv4 and IPv6 address for \ :emphasis:`idrac\_ip`\ .
125 - This module supports \ :literal:`check\_mode`\ .
126
127
128
129
130 Examples
131 --------
132
133 .. code-block:: yaml+jinja
134
135
136 ---
137 - name: Configure time zone and NTP on iDRAC
138 dellemc.openmanage.idrac_timezone_ntp:
139 idrac_ip: "190.168.0.1"
140 idrac_user: "user_name"
141 idrac_password: "user_password"
142 ca_path: "/path/to/ca_cert.pem"
143 setup_idrac_timezone: "UTC"
144 enable_ntp: Enabled
145 ntp_server_1: "190.168.0.1"
146 ntp_server_2: "190.168.0.2"
147 ntp_server_3: "190.168.0.3"
148
149
150
151 Return Values
152 -------------
153
154 msg (always, str, Successfully configured the iDRAC time settings.)
155 Overall status of the timezone and ntp configuration.
156
157
158 timezone_ntp_status (success, dict, {'@odata.context': '/redfish/v1/$metadata#DellJob.DellJob', '@odata.id': '/redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_861801613971', '@odata.type': '#DellJob.v1_0_0.DellJob', 'CompletionTime': '2020-04-06T19:06:01', 'Description': 'Job Instance', 'EndTime': None, 'Id': 'JID_861801613971', 'JobState': 'Completed', 'JobType': 'ImportConfiguration', 'Message': 'Successfully imported and applied Server Configuration Profile.', 'MessageArgs': [], 'MessageId': 'SYS053', 'Name': 'Import Configuration', 'PercentComplete': 100, 'StartTime': 'TIME_NOW', 'Status': 'Success', 'TargetSettingsURI': None, 'retval': True})
159 Job details of the time zone setting operation.
160
161
162 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
163 Details of the HTTP Error.
164
165
166
167
168
169 Status
170 ------
171
172
173 - This module will be removed in version
174 .
175 *[deprecated]*
176
177
178 Authors
179 ~~~~~~~
180
181 - Felix Stephen (@felixs88)
182 - Anooja Vardhineni (@anooja-vardhineni)
183