Re: [Puppet Users] how to trigger puppet run on agents remotely

Peter Brown
Thu, 01 Nov 2012 01:32:18 -0000

On 1 November 2012 06:11, Andrei-Florian Staicu
<andrei.staicu@gmail.com>wrote:

> On Wed, Oct 31, 2012 at 8:57 PM, Nishant Jain
<nishant.citrix@gmail.com>
> wrote:
> > Hello Everybody,
> >                           I am looking for a way to trigger puppet rum
> > remotely. so that i don''t need to login into individual nodes
and perform
> > the puppet agent --test from there.
> > Is there any alternative to puppet kick in puppet 3.0, since its being
> > deprecated in telly.
> > Also , can anybody tell how to configure foreman 1 to trigger puppet
run
> > from the gui in puppet 3.0
> > I have puppet 3.0 installed on RHEL 6.
> >
>
> My 50c: since mcollective is still fuzzy for me, i ended up using pssh
> (with ssh keys, of course).
> Just pssh -h hostlist -i "puppet agent --test"
>

It''s actually even easier than that.
puppet kick is what you want.
It does require the agent to start with listen turned on and your firewall
setup to allow tcp port 8139.
You can even kick multiple nodes at once.

puppet help kick gives you all the docs on it.