Ask Your Question

Mcollective configuration for desktops

asked 2016-05-17 10:43:17 -0600

demethyl gravatar image


i am using Puppet Enterprise, trying to configure desktop workstations with mco

Here are my specficiations :

  • using 61617 port for activeMQ
  • desktops are windows hosts
  • environment is not production : my nodes are not attached to PE MCollective classification

i did :

  • factstompport change on PE ActiveMQ classification to change the server listen port
  • i cant run the marionnette service on the windows hosts
  • the puppet agent -t works well : my nodes are valid on the master, just mco not working on nodes

This seems normal since the nodes are not on production env, so PE MCollective classification is not available for them. i tried to add puppet_enterprise::profile::mcollective::agent but it generates many errors

=> How can i use mco on non production environrment? Here is mcollective.log when trying to start the service on my slaves :

E, [2016-05-17T17:26:15.748534 #6980] ERROR -- : pluginmanager.rb:171:in `rescue in loadclass' Failed to load Mcollective::Registration::Meta: cannot load such file -- mcollective/registration/meta.rb

Thx a lot in advance Guillaume

edit retag flag offensive close merge delete


Do you have modules installed? `mcollective/registration/meta.rb` is not part of the default package. Which client (MSI) version are you using? How did you install MCollective on the agents?

MichaelSmith gravatar imageMichaelSmith ( 2016-06-20 15:21:17 -0600 )edit

Hello Michael, C:\Users\aa>puppet -V 4.5.2 I have a folder named : C:\Program Files\Puppet Labs\Puppet\mcollective\lib\mcollective\registration Containing : agentlist.rb and base.rb i didnt install any binary after having installed puppet 4.5.2 Binary used is puppet-agent-1.3.5-x64.msi

demethyl gravatar imagedemethyl ( 2016-06-24 04:47:25 -0600 )edit

In Puppet Enterprise the `puppet_enterprise::profile::mcollective::agent` class must be successfully applied for the mcollective service to work. You said this class had many errors. The first thing to do is get that class working. Is that class working? Can you share the errors if it is not?

reidmv gravatar imagereidmv ( 2016-06-30 05:02:41 -0600 )edit

Hello @reidmv : i managed to get this working many days ago. My issue right now is : if on puppet_enterprise::profile::mcollective::agent, the used port by default with stomp+ssl on activemq and on mco is 61613 : all is OK.

demethyl gravatar imagedemethyl ( 2016-06-30 07:03:41 -0600 )edit

However, when i change activemq port to 56666 for example, and do the same on stomp_port on puppet_enterprise::profile::mcollective::agent, then any mco command from peadmin (ping, discovery, find..) is working. on debug mode, heartbeat between nodes and activemq is OK, but no mco command works

demethyl gravatar imagedemethyl ( 2016-06-30 07:04:51 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-07-01 09:11:12 -0600

reidmv gravatar image

In Puppet Enteprise 2016.2.0 the correct way to change the MCollective port is with a single Hiera data parameter.

puppet_enterprise::mcollective_middleware_port: 61617

Alternatively, this parameter can be set on the "PE Infrastructure" group in the PE Console, on the puppet_enterprise class.

I've validated that on a new build this all works correctly and MCollective is functional in an environment which blocks port 61613 on the master. While my testing was performed on a PE 2016.2.0 release, the puppet_enterprise::mcollective_middleware_port parameter has been around for awhile and should be available many releases back, possibly as far back as Puppet Enterprise 3.8.3.

edit flag offensive delete link more


Hey reid, This works like a charm. Spent a tremendous lot of time to touch other classes / params.. Thank a lot! Guillaume

demethyl gravatar imagedemethyl ( 2016-07-01 09:44:58 -0600 )edit

answered 2016-05-24 09:46:35 -0600

demethyl gravatar image

Hello guys, anyone ?

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

1 follower


Asked: 2016-05-17 10:43:17 -0600

Seen: 222 times

Last updated: Jul 01 '16