9.1. Connecting to the Cluster Configuration from a Remote Machine
Provided Pacemaker is installed on a machine, it is possible to connect to the cluster even if the machine itself is not a part of it. To do this, one simply sets up a number of environment variables and runs the same commands as you would when working on a cluster node.
So if c001n01 is an active cluster node and is listening on 1234 for connections, and someguy is a member of the hacluster group. Then the following would prompt for someguy's password and return the cluster's current configuration:
For security reasons, the cluster does not listen remote connections by default. If you wish to allow remote access, you need to set the remote-tls-port
(encrypted) or remote-clear-port
(unencrypted) top-level options (ie. those kept in the cib tag , like num_updates
and epoch
).