Feature #2116
closed
Use MCollective to trigger Puppet runs
Added by Dominic Cleal about 12 years ago.
Updated over 11 years ago.
Category:
Puppet integration
|
Description
Much requested feature from the Foreman 1.1: what do you want to see next? thread.
Puppet run/kick is deprecated from Puppet 3.x and MCollective is recommended instead. Foreman should support using MCollective to execute the puppetd
agent (runonce
action) on the host.
Files
- Assignee deleted (
Ohad Levy)
- Status changed from New to Assigned
- Assignee set to Sam Kottler
I have a workaround for foreman-proxy to use Mcollective:
[root@puppet proxy]# diff puppet.rb.orig puppet.rb
23c23
< command = %x[#{sudo} #{puppetrun} --host #{hosts.join(" --host ")}]
---
command = %x[#{sudo} /usr/bin/mco puppet runonce -I #{hosts.join(" --host ")}]
Yep, there is a patch that I'm working on refactoring right now that does something not too dissimilar to that.
The 'puppetd' MCollective plugin is deprecated, and has been replaced by the 'puppet' plugin. We need to support both plugins. I've attached a patch that works for me.
Attaching a new version of the patch with a one-line change to use escape_for_shell() when running mco.
- Status changed from Assigned to Ready For Testing
- Assignee changed from Sam Kottler to Dominic Cleal
- Target version set to 1.2.0
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset commit:"80f8a61f43504ec3a4753dda2ef201483e5ce855".
Also available in: Atom
PDF