cloudera.cloud.datalake_runtime lookup – Get the Datalake Runtime for CDP Public Cloud Environments

Note

This lookup plugin 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.

To use it in a playbook, specify: cloudera.cloud.datalake_runtime.

Synopsis

  • Allows you to retrieve the Datalake CDH Runtime for one or more CDP Public Cloud Environments.

  • If an Environment is not found or is ambigious, the lookup will return an error.

Terms

Parameter

Comments

Terms

string / required

A CDP Public Cloud Environment name.

Notes

Note

  • Requires cdpy.

See Also

See also

cloudera.cloud.datalake_runtime_info

Cloudera CDP Public Cloud Datalake Runtime module

Examples

- name: Retrieve the details for a single CDP Public Cloud Environment
  ansible.builtin.debug:
    msg: "{{ lookup('cloudera.cloud.datalake_runtime', 'example-env') }}"

- name: Retrieve the details for multiple CDP Public Cloud Environments as a list
  ansible.builtin.debug:
    msg: "{{ query('cloudera.cloud.datalake_runtime', ['example-env', 'another-env']) }}"

Return Value

Key

Description

Return value

list / elements=string

List of Runtime versions

Returned: success

Authors

  • Webster Mudge (@wmudge)

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.