How to trigger puppet agent to run on a specific Linux host?
Running on:
Puppet Master 2.7.2 PostgreSQL Puppet agent 4.10
Thanks!
First time here? Check out the FAQ!
Running on:
Puppet Master 2.7.2 PostgreSQL Puppet agent 4.10
Thanks!
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... ).
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2019-01-13 07:39:07 -0600
Seen: 307 times
Last updated: Jan 14
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....