cloudera.cloud.opdb module – Create or destroy CDP OpDB Databases
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.opdb
.
Synopsis
Create or destroy CDP OpDB Databases
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: |
|
Capture the CDP SDK debug log. Choices:
|
|
The internal polling interval (in seconds) while the module waits for the OpDB Database to achieve the declared state. Default: |
|
The name of the Environment in which to find or place the OpDB Databases. Required with name |
|
If a name is provided, that OpDB Database will be created or dropped. environment must be provided |
|
If provided, the CDP SDK will use this value as its profile. |
|
The declarative state of the OpDB Database Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the OpDB Database to achieve the declared state. Default: |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
|
Flag to enable internal polling to wait for the Opdb Database to achieve the declared state. If set to FALSE, the module will return immediately. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Create an OpDB Database
- cloudera.cloud.opdb:
name: example-database
env: example-environment
# Remove an OpDB Database
- cloudera.cloud.opdb:
name: example-database
env: example-environment
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The information about the Created Database Returned: always |
|
The creation time of the database in UTC. Returned: present |
|
The CRN of the database creator. Returned: present |
|
The database’s crn. Returned: present |
|
The name of the database. Returned: present |
|
The version of the Database. Returned: present |
|
The crn of the database’s environment. Returned: present |
|
The name of the Database’s environment Returned: present |
|
The Hue endpoint for the Database. Returned: present |
|
Internal cluster name for this database Returned: present |
|
The status of the Database Returned: always |
|
HBase cloud storage location Returned: present |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |