query remote puppet master version from agent

Is there any mechanism for asking a puppet agent the version of the remote puppet master to which it is configured (its puppet.conf's server key)? I am writing a sanity check to ensure that the agent version is compatible with the master version, for a multi-master environment.

1 Answer

"The $server_facts variable provides a hash of server-side facts that cannot be overwritten by client side facts. This is important because it enables you to get trusted server facts that could otherwise be overwritten by client-side facts."