cloudera.cluster.cluster_info module – Retrieve details about one or more clusters

Note

This module is part of the cloudera.cluster collection (version 5.0.0).

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.cluster. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: cloudera.cluster.cluster_info.

New in cloudera.cluster 4.4.0

Synopsis

  • Retrieves details about one or more clusters managed by Cloudera Manager

Requirements

The below requirements are needed on the host that executes this module.

  • cm_client

Parameters

Parameter

Comments

cluster_type

aliases: type

string

Filter clusters by type when listing clusters.

Valid values are any, base, compute, and experience.

When omitted or null, the API default is used, which is base.

Mutually exclusive with name, including when explicitly set to null.

name

aliases: cluster_name, cluster

string

Name of Cloudera Manager cluster.

This parameter specifies the name of the cluster from which data will be gathered.

Mutually exclusive with cluster_type.

Examples

- name: Get information about the cluster
  cloudera.cluster.cluster_info:
    host: example.cloudera.com
    username: "jane_smith"
    name: "OneNodeCluster"
    password: "S&peR4Ec*re"
    port: "7180"

- name: Get information about all clusters
  cloudera.cluster.cluster_info:
    host: example.cloudera.com
    username: "jane_smith"
    password: "S&peR4Ec*re"
    port: "7180"
    type: any

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

clusters

list / elements=dictionary

Details about a Cloudera Manager cluster or clusters

Returned: success

cluster_type

string

The type of cluster.

Returned: always

display_name

string

The name of the cluster displayed in the Cloudera Manager UI.

Returned: always

entity_status

string

Health status of the cluster.

Returned: always

maintenance_mode

boolean

Maintance mode of cluster.

Returned: always

maintenance_owners

list / elements=string

List of maintance owners for cluster.

Returned: always

name

string

The name of the cluster.

Returned: always

tags

list / elements=string

List of tags for cluster.

Returned: always

uuid

boolean

The unique ID of the cluster.

Returned: always

version

string

Version of the cluster installed.

Returned: always

Authors

  • Ronald Suplina (@rsuplina)