8.4.4. Changing Default pacemaker_remote Options
If you need to change the default port or
authkeylocation for either Pacemaker or
pacemaker_remote, there are environment variables you can set that affect both of those daemons. These environment variables can be enabled by placing them in the
/etc/sysconfig/pacemakerfile as follows.
#==#==# Pacemaker Remote # Use a custom directory for finding the authkey. PCMK_authkey_location=/etc/pacemaker/authkey # # Specify a custom port for Pacemaker Remote connections PCMK_remote_port=3121
Note that when you change the default key location on a particular node (cluster node, guest node or remote node), it is sufficient to set PCMK_authkey_location on that node (and put the key in that location). It is not necessary that the location be the same on every node, although doing so makes administration easier.
When changing the default port used by a particular guest node or remote node, the
PCMK_remote_portvariable must be set in that node's
/etc/sysconfig/pacemakerfile, and the cluster resource creating the guest node or remote node connection must also be configured with the same port number (using the
remote-portmetadata option for guest nodes, or the
portoption for remote nodes).