Ask Your Question

Which version of the puppet client should I install?

asked 2013-06-10 17:36:14 -0600

Raymond gravatar image

updated 2013-06-10 18:29:28 -0600

Prior to installing the puppet client on the machine I want to query the puppetmaster (external to using the puppet client, ie via a REST api) and ask it which version to install. Is this possible/feasible? If so how, if now, how are people determining which version to install?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-06-10 19:05:49 -0600

Ancillas gravatar image

I might try using the "facts" api to get the version of Puppet that is running on the master.

curl -k -H "Accept: yaml" https://{puppetmaster}:8140/production/facts/{puppetmaster}

search the response for the puppet version, and then use that value to decide which client to install. Perhaps the whole approach is a bit complex, but it could work if you truly need to take this approach.

edit flag offensive delete link more

answered 2013-06-10 18:11:22 -0600

updated 2013-06-10 18:12:55 -0600

It's really a meta question, as by definition you won't be able to use puppet to run that script.

In my opinion puppet install should be part of your provisioning script, and come from your package management system. On centos, have a repository for third party packages, make sure puppet is there via a mirror of puppetlabs repository. In thepost install phase , install puppet and setup the basic information to bootstrap it (PUPPET_SERVER, etc)

Of course adjust for other distribution, but there should not be logic around the puppet client installation, it should be straightforward.

Note : the only ... (more)

edit flag offensive delete link more


Sorry maybe my question was unclear; I've updated it. I've got a repository with puppet clients in it; and I need to know which version of the client ...(more)

Raymond gravatar imageRaymond ( 2013-06-10 18:31:47 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2013-06-10 17:36:14 -0600

Seen: 162 times

Last updated: Jun 10 '13