About | FAQ | Help
Ask Your Question

Puppet run via Rest API

asked 2016-04-14 02:25:55 -0500

skghosh gravatar image

Hi, I have installed a PE with couple of nodes. I want to run puppet agent -t programmatically wither with Java or C#.Is there a REST API available for that or what is the programming interface available

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-04-14 09:07:25 -0500

DarylW gravatar image

updated 2016-04-15 12:00:06 -0500

Here is a link to the API documentation.. https://docs.puppet.com/puppet/latest/reference/httpapi/httpapi_index.html

Scanning through it, it looks like it's more for getting information from and interacting with the puppet master, not for interacting with individual puppet deamons to start off a run.

There used to be something called 'puppet kick' which could do what you were looking for, but it's been deprecated a long time ago and I believe removed as of 4.X IIRC.

The generally preferred orchestration framework is MCollective https://docs.puppet.com/mcollective/ https://puppet.com/podcasts/podcast-u...

I'm not sure if mcollective has a rest API or a client library. There is a section on the documentation about writing a SimpleRPC https://docs.puppet.com/mcollective/s...

I hope this helps point you in the right direction.

edit flag offensive delete link more

answered 2016-04-16 03:20:56 -0500

Thomas gravatar image

IMHO mcollective is obsoleted too.

the new tool seems to be pcp-broker + pxp-agent. This are components used in the orchestration feature.

https://github.com/puppetlabs/pcp-broker https://github.com/puppetlabs/pxp-agent https://github.com/puppetlabs/cpp-pcp... https://github.com/puppetlabs/clj-pcp... https://github.com/puppetlabs/ruby-pc...

edit flag offensive delete link more


Thanks for that information. I haven't kept up to date with the current goings on. Right now we don't have it well implemented (We are still batch SSHing out to run puppet agent -t)

DarylW gravatar imageDarylW ( 2016-04-17 19:37:52 -0500 )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



Asked: 2016-04-14 02:25:55 -0500

Seen: 340 times

Last updated: Apr 16 '16