cloudera.cluster.host_info module – Gather information about hosts within Cloudera Manager
Note
This module is part of the cloudera.cluster collection (version 4.4.0).
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.host_info
.
Synopsis
Gather information about the Cloudera Manager host instance.
Requirements
The below requirements are needed on the host that executes this module.
cm_client
Parameters
Parameter |
Comments |
---|---|
The name of the host. |
|
The ID of the host. |
Examples
---
- name: Get information about the host with hostname
cloudera.cluster.host_info:
host: "example.cloudera.host"
username: "will_jordan"
password: "S&peR4Ec*re"
cluster_hostname: "Ecs_node_01"
- name: Get information about the host with host id
cloudera.cluster.host_info:
host: "example.cloudera.host"
username: "will_jordan"
password: "S&peR4Ec*re"
cluster_hostname: "Ecs_node_01"
- name: Get information about all the hosts registered by Cloudera Manager
cloudera.cluster.host_info:
host: "example.cloudera.host"
username: "will_jordan"
password: "S&peR4Ec*re"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details about Cloudera Manager Host Returned: success |
|
A reference to the enclosing cluster. Returned: optional |
|
Represents the Commission state of an entity. Returned: optional |
|
OS distribution details. Returned: optional |
|
The single value used by the Cloudera Manager UI to represent the status of the entity. Returned: optional |
|
Represents a result from a health test performed by Cloudera Manager for an entity. Returned: optional |
|
The summary status of health check. Returned: optional |
|
A unique host identifier. This is not the same as the hostname (FQDN). It is a distinct value that remains the same even if the hostname changes. Returned: optional |
|
A URL into the Cloudera Manager web UI for this specific host. Returned: optional |
|
The hostname. This field is not mutable after the initial creation. Returned: optional |
|
The host IP address. This field is not mutable after the initial creation. Returned: optional |
|
Time when the host agent sent the last heartbeat. Returned: optional |
|
Maintance mode of Cloudera Manager Service. Returned: optional |
|
List of Maintance owners for Cloudera Manager Service. Returned: optional |
|
The number of logical CPU cores on this host. Returned: optional |
|
The number of physical CPU cores on this host. Returned: optional |
|
The rack ID for this host. Returned: optional |
|
The list of roles assigned to this host. Returned: optional |
|
Tags associated with the host. Returned: optional |
|
he amount of physical RAM on this host, in bytes. Returned: optional |
Authors
Ronald Suplina (@rsuplina)
Collection links