Skip to content

Latest commit

 

History

History
70 lines (40 loc) · 3.11 KB

orchestration_config.markdown

File metadata and controls

70 lines (40 loc) · 3.11 KB
layout title canonical
default
Configuring MCollective
/pe/latest/orchestration_config.html

Puppet Enterprise's MCollective can be configured to enable new actions, modify existing actions, restrict actions, and prevent run failures on non-PE nodes.

Disabling MCollective on some nodes

By default, PE enables and configures MCollective on all agent nodes. This is generally desirable, but the Puppet code that manages this will not work on non-PE agent nodes, and will cause Puppet run failures on them.

Since the Puppet master server supports managing non-PE agent nodes (including things like network devices), you should disable MCollective on non-PE nodes.

To disable MCollective for a node, in the PE console, create a rule in the PE MCollective group that excludes the node. This will prevent PE from attempting to enable MCollective on that node. See here for instructions on including nodes in node groups in the console.

Adding actions

See the Adding actions page of this manual.

Changing the port used by MCollective/ActiveMQ

You can change the port that MCollective/ActiveMQ uses with a simple variable change in the console.

  1. In the Classification page, click the PE MCollective group.
  2. Click Variables.
  3. In the key field, add fact_stomp_port, and in the value field, add the port number you want to use.
  4. Click Add variable and then click the commit button.

Configuring MCollective plugins

Some MCollective agent plugins, including the default set included with Puppet Enterprise, have settings that can be configured.

Since the main configuration file is managed by PE, you must put these settings in separate plugin config files.

Restricting MCollective actions

See Policy files.

Unsupported features

Adding new MCollective users and integrating applications

Adding new users is not supported in Puppet Enterprise. Future versions of PE may change MCollective's authentication backend, which will block additional users from working until they are updated to use the new backend. We plan to include an easy method to add new users in a future version of PE.

In the meantime, if you need to add a new user in order to integrate an application with PE, you can:

  • Obtain client credentials and a config file as described in the standard MCollective deployment guide.
  • Write a Puppet module to distribute the new client's public key into the ${pe_mcollective::params::mco_etc}/ssl/clients/ directory. This class must use include pe_mcollective to ensure that the directory can be located.
  • Assign that Puppet class to the PE MCollective group in the PE console.

Again, this process is unsupported and may require additional work during a future upgrade.