cloudera.cloud.datahub_cluster_recipe module – Manage CDP Datahub recipes on an instance group
Note
This module is part of the cloudera.cloud collection (version 2.5.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cloud.datahub_cluster_recipe
.
Synopsis
Create, update, and delete CDP Datahub recipes to an instance group of a CDP Datahub.
A recipe is a script that runs on all nodes of a specified instance group of a Datahub.
See the Cloudera documentation on recipes for details.
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
Specify the Cloudera Data Platform endpoint region. Default: |
|
The name or CRN of the datahub. |
|
Capture the CDP SDK debug log. Choices:
|
|
The name of the CDP Datahub instance group. |
|
If provided, the CDP SDK will use this value as its profile. |
|
A list of recipes for the CDP Datahub instance group. To remove all recipes from the instance group, declare an empty list. |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Notes
Note
This module supports
check_mode
.If the existing recipe is different than the declared state, the recipe is recreated and assigned a new CRN.
Examples
# Note: These examples do not set authentication details.
- name: Set a couple of recipes to an instance group
cloudera.cloud.datahub_cluster_recipe:
datahub: example-datahub
name: core_broker
recipes:
- recipe01
- recipe02
- name: Reset the recipes to an instance group (will remove recipe01 from above)
cloudera.cloud.datahub_cluster_recipe:
datahub: example-datahub
name: core_broker
recipes:
- recipe02
- name: Remove all recipes of an instance group
cloudera.cloud.datahub_cluster_recipe:
datahub: example-datahub
name: core_broker
recipes: []
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The recipe state for the CDP Datahub instance group. Returned: always |
|
List of recipes attached to the instance group. Returned: always |
|
Name of the CDP Datahub. Returned: always |
|
List of recipes detached from the instance group. Returned: always |
|
Name of the instance group in the CDP Datahub. Returned: always |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |