how to trigger puppet run on agents remotely

3,304 views
Skip to first unread message

Nishant Jain

unread,
Oct 31, 2012, 2:57:41 PM10/31/12
to puppet...@googlegroups.com
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.

Thanks,
Nishant

Brendan O'Bra

unread,
Oct 31, 2012, 3:17:47 PM10/31/12
to puppet...@googlegroups.com
MCollective will do this nicely : http://puppetlabs.com/mcollective/introduction/
 

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/la4FZvTp9VMJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
GVoice: 707.646.9180

Andrei-Florian Staicu

unread,
Oct 31, 2012, 4:11:17 PM10/31/12
to puppet...@googlegroups.com
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"

Peter Brown

unread,
Oct 31, 2012, 9:32:18 PM10/31/12
to puppet-users
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.


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Nishant Jain

unread,
Nov 1, 2012, 10:00:58 AM11/1/12
to puppet...@googlegroups.com
@Pete, the puppet kick functionality is deprecated in puppet 3.0

Peter Brown

unread,
Nov 4, 2012, 10:11:53 PM11/4/12
to puppet-users
On 2 November 2012 00:00, Nishant Jain <nishant...@gmail.com> wrote:
@Pete, the puppet kick functionality is deprecated in puppet 3.0

Ahh yeah that's right. Sorry. I have a vague memory of noticing that in the list of things that changed in 3.
I haven't switched to 3 yet as I haven't had the time to test my modules with it.

To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/rxY_p9yNJXQJ.

Yugank Pandey

unread,
Jul 14, 2014, 11:11:26 AM7/14/14
to puppet...@googlegroups.com, andrei...@gmail.com
 how can i use pssh to ssh into three machines with different private keys and execute a command.
 if you could guide me on how to use private (.pem) files to do so, it will be helpful.

Spencer Krum

unread,
Jul 14, 2014, 4:42:42 PM7/14/14
to puppet...@googlegroups.com, andrei...@gmail.com
I've met a number of people who are firing puppet runs with Ansible and Salt.
Also, depending on your number of nodes and catalog size, you might simply lower the interval between Puppet runs. I've met people who are as low as 5 or 10 minutes between runs.




On Mon, Jul 14, 2014 at 8:11 AM, Yugank Pandey <yug...@cloudthat.in> wrote:
 how can i use pssh to ssh into three machines with different private keys and execute a command.
 if you could guide me on how to use private (.pem) files to do so, it will be helpful.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5de5354c-fcf9-47b9-9d85-00e1fc0a20ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Spencer Krum
(619)-980-7820

Nikolay Georgieff

unread,
Jul 14, 2014, 7:03:51 PM7/14/14
to puppet...@googlegroups.com
Mcollective is the right way to trigger puppet run.

Christian Flamm

unread,
Nov 30, 2015, 6:00:55 AM11/30/15
to Puppet Users
Very simple, yet helpful: https://github.com/alcCapone/doll
Reply all
Reply to author
Forward
0 new messages