Forge Home

pe_mco_shell_agent

Puppet deployment wrapper for the mco shell agent

23,570 downloads

16,480 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 2.0.0 (latest)
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.1.2
  • 0.1.1 (deleted)
  • 0.1.1-uploadtest2 (deleted)
  • 0.1.1-uploadtest1 (deleted)
  • 0.1.0
  • 0.1.0-dev1 (deleted)
released Mar 9th 2017
This version is compatible with:
  • RedHat, Windows, Debian, Ubuntu, Solaris, SLES, AIX

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'reidmv-pe_mco_shell_agent', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add reidmv-pe_mco_shell_agent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install reidmv-pe_mco_shell_agent --version 2.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

reidmv/pe_mco_shell_agent — version 2.0.0 Mar 9th 2017

pe_mco_shell_agent

Build Status

####Table of Contents

  1. Overview
  2. Setup
  3. Usage
  4. Limitations

##Overview

Installs the mcollective-shell-agent plugin for Puppet Enterprise MCollective installs.

##Setup

###What pe_mco_shell_agent affects

  • Creates a plugin directory under MCollective's libdir:
    • PE <= 3.8 - /opt/puppet/libexec/mcollective
    • PE >= 2015.1 - /opt/puppetlabs/mcollective/plugins/
  • Restarts the service on changes

Configuration

  • Easiest setup is adding class pe_mco_shell_agent to the PE MCollective node group. The install_app and install_agent parameters can be set to either install or uninstall/not install the application and agent, respectively.

  • If setting up via code the following can be done:

To setup the MCO agent onto nodes the defaults can be used:

include pe_mco_shell_agent

or

class { 'pe_mco_shell_agent': }

To setup the MCO application on a node that has a MCO client present use:

class { 'pe_mco_shell_agent':
  install_app => true,
}

If the MCO agent is not required on the MCO client node this can be removed/not installed by:

class { 'pe_mco_shell_agent':
  install_app   => true,
  install_agent => false,
}

Usage

For full documentation of the plugin see https://github.com/puppetlabs/mcollective-shell-agent

Here's some examples:

run

# su - peadmin

$ peadmin@master:~$ mco shell run 'echo Hello world'

 * [ ============================================================> ] 1 / 1

master.vm:
Hello world


Finished processing 1 / 1 hosts in 173.74 ms

start

Run a script ascryonously. Returns an ID that can be watched or killed

peadmin@master:/home/vagrant$ mco shell start "sleep 5 && echo '5 seconds'"

 * [ ============================================================> ] 1 / 1

precise64.home: 116f9387-78d6-43dc-a493-232a41c1d9be

Finished processing 1 / 1 hosts in 175.77 ms

list

Used to list the job ID's for jobs from start

peadmin@master:/home/vagrant$ mco shell start "sleep 5 && echo '5 seconds'"

 * [ ============================================================> ] 1 / 1

precise64.home: 116f9387-78d6-43dc-a493-232a41c1d9be

Finished processing 1 / 1 hosts in 175.77 ms

show

Used to see the output for jobs run by start

peadmin@master:/home/vagrant$ mco shell watch 116f9387-78d6-43dc-a493-232a41c1d9be

 * [ ============================================================> ] 3 / 3

precise64.home stdout: 5 seconds

kill

Used to see the kill a job run by start

peadmin@master:/home/vagrant$ mco shell kill 116f9387-78d6-43dc-a493-232a41c1d9be

 * [ ============================================================> ] 3 / 3

precise64.home stdout: 5 seconds

##Limitations

Primary support is for Debian-family and RedHat, but should work on all Linux flavours.

Partial Windows suport is also available