cloudera.cloud.env_freeipa_domain lookup – Get information about the FreeIPA domain and DNS server IP address(es) for the selected CDP Public Cloud Environment

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.env_freeipa_domain.

Synopsis

  • Allows you to retrieve information about FreeIPA Domain for a given CDP Public Cloud Environment.

  • You can use these details to update client DNS, e.g. set up entries in /etc/resolv.conf

  • If the 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

Keyword parameters

This describes keyword parameters of the lookup. These are the values key1=value1, key2=value2 and so on in the following examples: lookup('cloudera.cloud.env_freeipa_domain', key1=value1, key2=value2, ...) and query('cloudera.cloud.env_freeipa_domain', key1=value1, key2=value2, ...)

Parameter

Comments

detailed

boolean

Flag to return the IP address of each FreeIP host for a selected CDP Public Cloud Environment.

Choices:

  • false ← (default)

  • true

Notes

Note

  • When keyword and positional parameters are used together, positional parameters must be listed before keyword parameters: lookup('cloudera.cloud.env_freeipa_domain', term1, term2, key1=value1, key2=value2) and query('cloudera.cloud.env_freeipa_domain', term1, term2, key1=value1, key2=value2)

  • Requires cdpy.

Examples

- name: Retrieve the FreeIPA domain and host IP addresses for a CDP Public Cloud Environment
  ansible.builtin.debug:
    msg: "{{ lookup('cloudera.cloud.env_freeipa_domain', 'example-env') }}"

- name: Retrieve the FreeIPA domain and host IP addresses  for a CDP Public Cloud Environment
  ansible.builtin.debug:
    msg: "{{ lookup('cloudera.cloud.env_freeipa_domain', 'example-env' , detailed=True  ) }}"

Return Value

Key

Description

Return value

list / elements=complex

List of FreeIPA domains for selected Environments

Returned: success

Authors

  • Ronald Suplina (@rsuplina)

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.