Ask Your Question

running Puppet on this node 2015.3 (API ?)

asked 2015-12-15 04:28:57 -0500

FranzCC gravatar image

Hello, i noticed that there's a new section on every node called "running Puppet on this node".
Right now i use mco for remote execution of an agent run but need this function to have integrated in my API call,
without executing a commandline program. Right now i use NRPE via perl but it would be great to have a API function to trigger an agent run.
Perhaps someone has a clue if there's already an API call handy.

Thanks in advance


edit retag flag offensive close merge delete


The PCP/PXP API is not working with remote connections and the doc isn't complete,
I have written my own wss implementation reusing the puppet cert and crl.
I only use non-blocking IO , so i don't have to fiddle around with blocking repsonses etc.

FranzCC gravatar imageFranzCC ( 2015-12-21 08:27:53 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2015-12-17 01:41:44 -0500

FranzCC gravatar image

updated 2016-03-30 01:07:48 -0500

Due to the fact that this is part of the new orchestration service (pxp-agent),
can you please tell me how to use the API ?
Debugging a request i see, that there's a connection from the client to the master reqeust broker.
Servicing a wss:// is it possible to use websockets to tcp port 8142
on the master running the command pxp-module-puppet run" ?

What is the wss api format for a pxp-request ?

What proto spec do you use v1 or v2 ?



Update: it's not possible to use the orchestration API at this time. I wrote my own implementation.

Update: I really would appreciate full debian support (orchestration) as for Ubuntu.
I cannot understand, why that's not the case !
We pay for enterprise quality and debian (we have a huge load of custom packages) is our distribution and will be in the future.
We won't change to ubuntu !!!

edit flag offensive delete link more


For the records, the pcp API is restricted to the PE console right now. Nevertheless, sending blocking responses seems not the way to go IMHO. I've written a complete NON-Blocking Orchestration which can catch errors etc. on the fly, and can also run parallel requests.

FranzCC gravatar imageFranzCC ( 2015-12-23 01:15:10 -0500 )edit

answered 2016-03-22 12:55:28 -0500

Franz, you're correct -- the PCP API is private to Puppet Enterprise and is not intended nor supported for your use. There's a higher level API via the Orchestrator (combined as part of pe-orchestration-services) that's intended for you to control Puppet Agents, in bulk and with respect to any node dependencies you've defined with the new application management language additions.

The Orchestrator API is not yet public but will be soon. In the interim, there's a command-line client puppet job which drives puppet-agent runs for an entire Puppet environment and allows you to target application instances you've defined with application management. As we add the ability to target node groups and/or individual nodes, and we publish API documentation and support your use of the API directly, you should be able to solve the case you've described. That's part of what we intend that API and command-line client for.

Today, there's a more general API for controlling Puppet (amongst other things) - MCollective. You can read more about it here and specifically its puppet-agent plugin here.

edit flag offensive delete link more


Hi Ryan,
thanks for the hint, but i'm aware of mcollective and its features.
Like i mentioned, i needed non-blocking I/O for doing ws(s) directly.
For many reasons. So, e.g. i'm doing direct console io by using ws(s). Also, there's no pe-client-tools for debian 8...

FranzCC gravatar imageFranzCC ( 2016-03-30 01:00:59 -0500 )edit

I don't know why puppet doesn't provide debian support.
That's a rather big issue. We've a huge, debian only env. So, i programmed my own implementation, which is much smaller than pxp.
I would really appreciate a restful API for MCO rather than fork/exec a commandline util
. Rgds. Franz

FranzCC gravatar imageFranzCC ( 2016-03-30 01:04:06 -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: 2015-12-15 04:28:57 -0500

Seen: 522 times

Last updated: Mar 30 '16