Ask Your Question

query remote puppet master version from agent

asked 2016-10-21 11:26:47 -0600

hesco gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-21 16:45:20 -0600

ramindk gravatar image

updated 2016-10-22 22:10:46 -0600

In Puppet 4,

"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."

Puppet 4.x doc

In Puppet 3.x you get individual facts,

"Several variables are set by the Puppet master. These are most useful when managing Puppet with Puppet. (For example, managing puppet.conf with a template.)"

Puppet 3.x doc

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2016-10-21 11:26:47 -0600

Seen: 66 times

Last updated: Oct 22 '16