Ask Your Question
0

How to trigger puppet agent to run on a specific Linux host?

asked 2019-01-13 07:39:07 -0600

sitemap gravatar image

Running on:

Puppet Master 2.7.2 PostgreSQL Puppet agent 4.10

Thanks!

edit retag flag offensive close merge delete

Comments

At the risk of offending the Puppet community you could use a tool like Ansible to trigger the puppet run. The "shell" module is probably what you want. You do need to be able to ssh from the Ansible to the Puppet server. I use both Puppet and Ansible in my environment....

bschonecker gravatar imagebschonecker ( 2019-01-17 06:19:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-01-14 10:09:45 -0600

DarylW gravatar image

Hello!

Puppet is usually designed to run on a set schedule (typically every half hour). If you wish to trigger an 'out of band' run, you would need to use some sort of tool to allow you to do that.

Currently, I believe puppet is heading toward using Puppet Tasks or Puppet Bolt ( https://puppet.com/docs/bolt/1.x/bolt... ) to do things like that.

I did also stumble across this example while compiling all the ways listed here, this is a pretty through resource - https://www.example42.com/2018/01/29/...

Back in the puppet 2.x days (and deprecated in the 3.x days) there was a tool called

The previous recommended tool from puppet was MCollective ( https://puppet.com/docs/mcollective/c... ), which I believe came with PE. The creator of MCollective has been working on a new version of it, which uses the NTAS protocol instead of setting up an ActiveMQ / RabbitMQ server to handle messaging - called Choria ( https://github.com/choria-io/mcollect... )

Historically, some people have used the Ansible 'puppet' module to manage/run independent executions of puppet ( https://docs.ansible.com/ansible/late... ).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-01-13 07:39:07 -0600

Seen: 255 times

Last updated: Jan 14