|
15 | 15 | # See the License for the specific language governing permissions and |
16 | 16 | # limitations under the License. |
17 | 17 |
|
18 | | - |
19 | | -import yaml |
20 | | -from typing import Optional |
21 | | -from cm_client import ( |
22 | | - ClustersResourceApi, |
23 | | - ControlPlanesResourceApi, |
24 | | - ApiInstallControlPlaneArgs, |
25 | | - ApiInstallEmbeddedControlPlaneArgs, |
26 | | - CommandsResourceApi, |
27 | | -) |
28 | | - |
29 | | -from ansible_collections.cloudera.cluster.plugins.module_utils.cm_utils import ( |
30 | | - ClouderaManagerModule, |
31 | | -) |
32 | | - |
33 | | -from ansible_collections.cloudera.cluster.plugins.module_utils.cluster_utils import ( |
34 | | - parse_cluster_result, |
35 | | - parse_control_plane_result, |
36 | | -) |
37 | | -from ansible.module_utils.common.validation import check_missing_parameters |
38 | | -from ansible.module_utils.common.text.converters import to_native |
39 | | - |
40 | | -from cm_client.rest import ApiException |
41 | | - |
42 | 18 | DOCUMENTATION = r""" |
43 | 19 | module: control_plane |
44 | 20 | short_description: Manage Cloudera control planes |
|
50 | 26 | - "Jim Enright (@jimright)" |
51 | 27 | version_added: 5.0.0 |
52 | 28 | extends_documentation_fragment: |
| 29 | + - ansible.builtin.action_common_attributes |
53 | 30 | - cloudera.cluster.cm_options |
54 | 31 | - cloudera.cluster.cm_endpoint |
55 | 32 | attributes: |
56 | 33 | check_mode: |
57 | 34 | support: full |
58 | 35 | diff_mode: |
59 | 36 | support: full |
| 37 | + platform: |
| 38 | + platforms: all |
60 | 39 | requirements: |
61 | 40 | - cm-client |
62 | 41 | options: |
|
245 | 224 | returned: when available |
246 | 225 | """ |
247 | 226 |
|
| 227 | +import yaml |
| 228 | + |
| 229 | +from typing import Optional |
| 230 | + |
| 231 | +from cm_client import ( |
| 232 | + ClustersResourceApi, |
| 233 | + ControlPlanesResourceApi, |
| 234 | + ApiInstallEmbeddedControlPlaneArgs, |
| 235 | + CommandsResourceApi, |
| 236 | +) |
| 237 | +from cm_client.rest import ApiException |
| 238 | + |
| 239 | +from ansible_collections.cloudera.cluster.plugins.module_utils.cm_utils import ( |
| 240 | + ClouderaManagerModule, |
| 241 | +) |
| 242 | + |
| 243 | +from ansible_collections.cloudera.cluster.plugins.module_utils.cluster_utils import ( |
| 244 | + parse_cluster_result, |
| 245 | + parse_control_plane_result, |
| 246 | +) |
| 247 | +from ansible.module_utils.common.validation import check_missing_parameters |
| 248 | +from ansible.module_utils.common.text.converters import to_native |
| 249 | + |
| 250 | + |
248 | 251 | # Constant for the tag used to identify the control plane in Experience Cluster |
249 | 252 | CONTROL_PLANE_IDENTIFIER_TAG = "_cldr_cm_ek8s_control_plane" |
250 | 253 |
|
|
0 commit comments