| 1 |
.. _dellemc.enterprise_sonic.sonic_fips_module: |
| 2 |
|
| 3 |
|
| 4 |
*********************************** |
| 5 |
dellemc.enterprise_sonic.sonic_fips |
| 6 |
*********************************** |
| 7 |
|
| 8 |
**Manage FIPS configurations on SONiC** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 2.1.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module provides FIPS configuration management to specify the security requirements for cryptographic modules in devices running SONiC. |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
Parameters |
| 26 |
---------- |
| 27 |
|
| 28 |
.. raw:: html |
| 29 |
|
| 30 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 31 |
<tr> |
| 32 |
<th colspan="2">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="2"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>config</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">dictionary</span> |
| 43 |
</div> |
| 44 |
</td> |
| 45 |
<td> |
| 46 |
</td> |
| 47 |
<td> |
| 48 |
<div>The mode of FIPS configuration with specifications of security requirements for cryptographic modules.</div> |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<tr> |
| 52 |
<td class="elbow-placeholder"></td> |
| 53 |
<td colspan="1"> |
| 54 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 55 |
<b>enable</b> |
| 56 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 57 |
<div style="font-size: small"> |
| 58 |
<span style="color: purple">boolean</span> |
| 59 |
</div> |
| 60 |
</td> |
| 61 |
<td> |
| 62 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 63 |
<li>no</li> |
| 64 |
<li>yes</li> |
| 65 |
</ul> |
| 66 |
</td> |
| 67 |
<td> |
| 68 |
<div>This argument is a boolean value to enable or disable FIPS mode.</div> |
| 69 |
</td> |
| 70 |
</tr> |
| 71 |
|
| 72 |
<tr> |
| 73 |
<td colspan="2"> |
| 74 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 75 |
<b>state</b> |
| 76 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 77 |
<div style="font-size: small"> |
| 78 |
<span style="color: purple">string</span> |
| 79 |
</div> |
| 80 |
</td> |
| 81 |
<td> |
| 82 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 83 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 84 |
<li>deleted</li> |
| 85 |
</ul> |
| 86 |
</td> |
| 87 |
<td> |
| 88 |
<div>The state specifies the type of configuration update to be performed on the device. If the state is "merged", merge specified attributes with existing configured attributes. For "deleted", delete the specified attributes from existing configuration.</div> |
| 89 |
</td> |
| 90 |
</tr> |
| 91 |
</table> |
| 92 |
<br/> |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
Examples |
| 98 |
-------- |
| 99 |
|
| 100 |
.. code-block:: yaml |
| 101 |
|
| 102 |
# Using "deleted" state |
| 103 |
# |
| 104 |
# Before state: |
| 105 |
# ------------- |
| 106 |
# |
| 107 |
# sonic# show running-configuration | grep fips |
| 108 |
# ! |
| 109 |
# crypto fips enable |
| 110 |
# ! |
| 111 |
|
| 112 |
- name: Delete FIPS mode configuration |
| 113 |
dellemc.enterprise_sonic.sonic_fips: |
| 114 |
config: |
| 115 |
enable: false |
| 116 |
state: deleted |
| 117 |
|
| 118 |
# After state: |
| 119 |
# ------------ |
| 120 |
# sonic# show running-configuration | grep fips |
| 121 |
# sonic# |
| 122 |
|
| 123 |
|
| 124 |
# Using "deleted" state |
| 125 |
# |
| 126 |
# Before state: |
| 127 |
# ------------- |
| 128 |
# |
| 129 |
# sonic# show fips status |
| 130 |
# ! |
| 131 |
# FIPS Mode : Enabled |
| 132 |
# Crypto Library : OpenSSL 1.1.1n-fips 15 Mar 2022 |
| 133 |
# FIPS Object Module : DELL OpenSSL FIPS Crypto Module v2.6 July 2021 |
| 134 |
# ! |
| 135 |
|
| 136 |
- name: Disable FIPS mode |
| 137 |
dellemc.enterprise_sonic.sonic_fips: |
| 138 |
config: |
| 139 |
enable: false |
| 140 |
state: deleted |
| 141 |
|
| 142 |
# After state: |
| 143 |
# ------------ |
| 144 |
# |
| 145 |
# sonic# show fips status |
| 146 |
# ! |
| 147 |
# FIPS Mode : Disabled |
| 148 |
# Crypto Library : OpenSSL 1.1.1n-fips 15 Mar 2022 |
| 149 |
# FIPS Object Module : DELL OpenSSL FIPS Crypto Module v2.6 July 2021 |
| 150 |
# ! |
| 151 |
|
| 152 |
|
| 153 |
# Using "merged" state |
| 154 |
# |
| 155 |
# Before state: |
| 156 |
# ------------- |
| 157 |
# |
| 158 |
# sonic# show running-configuration | grep fips |
| 159 |
# sonic# |
| 160 |
|
| 161 |
- name: Modify FIPS configurations |
| 162 |
dellemc.enterprise_sonic.sonic_fips: |
| 163 |
config: |
| 164 |
enable: true |
| 165 |
state: merged |
| 166 |
|
| 167 |
# After state: |
| 168 |
# ------------ |
| 169 |
# sonic# show running-configuration | grep fips |
| 170 |
# ! |
| 171 |
# crypto fips enable |
| 172 |
# ! |
| 173 |
|
| 174 |
|
| 175 |
# Using "merged" state |
| 176 |
# |
| 177 |
# Before state: |
| 178 |
# ------------- |
| 179 |
# |
| 180 |
# sonic# show fips status |
| 181 |
# ! |
| 182 |
# FIPS Mode : Disabled |
| 183 |
# Crypto Library : OpenSSL 1.1.1n-fips 15 Mar 2022 |
| 184 |
# FIPS Object Module : DELL OpenSSL FIPS Crypto Module v2.6 July 2021 |
| 185 |
# ! |
| 186 |
|
| 187 |
- name: Enable FIPS mode |
| 188 |
dellemc.enterprise_sonic.sonic_fips: |
| 189 |
config: |
| 190 |
enable: true |
| 191 |
state: merged |
| 192 |
|
| 193 |
# After state: |
| 194 |
# ------------ |
| 195 |
# |
| 196 |
# sonic# show fips status |
| 197 |
# ! |
| 198 |
# FIPS Mode : Enabled |
| 199 |
# Crypto Library : OpenSSL 1.1.1n-fips 15 Mar 2022 |
| 200 |
# FIPS Object Module : DELL OpenSSL FIPS Crypto Module v2.6 July 2021 |
| 201 |
# ! |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
Return Values |
| 206 |
------------- |
| 207 |
Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module: |
| 208 |
|
| 209 |
.. raw:: html |
| 210 |
|
| 211 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 212 |
<tr> |
| 213 |
<th colspan="1">Key</th> |
| 214 |
<th>Returned</th> |
| 215 |
<th width="100%">Description</th> |
| 216 |
</tr> |
| 217 |
<tr> |
| 218 |
<td colspan="1"> |
| 219 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 220 |
<b>after</b> |
| 221 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 222 |
<div style="font-size: small"> |
| 223 |
<span style="color: purple">dictionary</span> |
| 224 |
</div> |
| 225 |
</td> |
| 226 |
<td>when changed</td> |
| 227 |
<td> |
| 228 |
<div>The resulting configuration module invocation.</div> |
| 229 |
<br/> |
| 230 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 231 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format as the parameters above.</div> |
| 232 |
</td> |
| 233 |
</tr> |
| 234 |
<tr> |
| 235 |
<td colspan="1"> |
| 236 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 237 |
<b>before</b> |
| 238 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 239 |
<div style="font-size: small"> |
| 240 |
<span style="color: purple">dictionary</span> |
| 241 |
</div> |
| 242 |
</td> |
| 243 |
<td>always</td> |
| 244 |
<td> |
| 245 |
<div>The configuration prior to the module invocation.</div> |
| 246 |
<br/> |
| 247 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 248 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format as the parameters above.</div> |
| 249 |
</td> |
| 250 |
</tr> |
| 251 |
<tr> |
| 252 |
<td colspan="1"> |
| 253 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 254 |
<b>commands</b> |
| 255 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 256 |
<div style="font-size: small"> |
| 257 |
<span style="color: purple">list</span> |
| 258 |
</div> |
| 259 |
</td> |
| 260 |
<td>always</td> |
| 261 |
<td> |
| 262 |
<div>The set of commands pushed to the remote device.</div> |
| 263 |
<br/> |
| 264 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 265 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['command 1', 'command 2', 'command 3']</div> |
| 266 |
</td> |
| 267 |
</tr> |
| 268 |
</table> |
| 269 |
<br/><br/> |
| 270 |
|
| 271 |
|
| 272 |
Status |
| 273 |
------ |
| 274 |
|
| 275 |
|
| 276 |
Authors |
| 277 |
~~~~~~~ |
| 278 |
|
| 279 |
- Balasubramaniam Koundappa(@balasubramaniam-k) |