Ask Your Question

Puppet run via Rest API

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

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 -0600

DarylW gravatar image

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

Here is a link to the API documentation..

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

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

I hope this helps point you in the right direction.

edit flag offensive delete link more

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

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.

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



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

Seen: 408 times

Last updated: Apr 16 '16