In this chapter we will are going to cover how to create, test, and use custom plugins. We’ll cover how to:
mcocommand line too.
This section is where you’ll learn exactly how mutable and adaptable MCollective can be to service your needs.
The first thing we’re going to do is build our own custom Agent and Client. As discussed in Agent Plugins, the agent implements server-side functionality that a client can create requests for.
We will start with a basic template useful as a starting point for agent development. We’ll expand the basics to provide additional features, and discuss different ways to work with the MCollective plugin ecosystem.
When you are done with this chapter you’ll have an actual working agent and client to use as a starting point for building your own custom agent.
The first thing we’re going to do is build a custom Agent. We will start with a basic template useful as a starting point for agent development. After reading this chapter you’ll be able to take this agent and replace just a few lines of Ruby with any code you want to put there.
As we build MCollective clients and agents we will be utilizing a set of libraries which comprise the