Foreman MCollective Integration not working

HI everyone,

I have some problems to integrate Foreman with MCollective. I am using
Foreman 1.2.0 and I just followed the instructions of the wiki:

MCollective

The proxy can trigger Puppet runs using the MCollective "puppet" agent. To
enable this, add this line to settings.yml:

:puppet_provider: mcollective

And then add a sudoers rule:

*Defaults:foreman-proxy !requiretty
foreman-proxy ALL = NOPASSWD: /usr/bin/mco puppet runonce **

In addition to that I also modified the file
/etc/foreman-proxy/settings.yml, and added this:

enable MCollective integration

:mcollective: true

Then i restarted foreman, and foreman-proxy. Unfortunatelly, when I click
on "Run Puppet" the proxy still tries to run a puppet "kick" instead of
using MCollective:

tail -f /var/log/secure

Aug 21 10:34:09 puppetmaster01 sudo: foreman-proxy : TTY=unknown ; PWD=/ ;
USER=root ; COMMAND=/usr/bin/puppet kick --host puppetclient.com

I know that MCollective is up and running since I succeed when I call
different MCollective CLI like: mco ping, mco puppt runonce, etc.

What am I missing??

Thanks a lot!
Cesar

Hey Hi,

I solved the problem, sorry it was my fault!

Instead of enabling the parameter

:puppet_provider: mcollective

on the proxy I had enabled it on the foreman config file.

Now it is working :wink:
Cheers, Cesar