Home Page Icon
Home Page
Table of Contents for
III. Plugins
Close
III. Plugins
by Jo Rhett
Learning MCollective
Preface
Who this book is for
What to expect from me
What you’ll find in this book
IPv6 Ready
Let’s Go.
I. Getting Started
1. Introduction
What is MCollective?
Why Parallel Execution?
How MCollective Works
Why Use MCollective
How to Fail with MCollective
Time to Get Started
2. Installation
Requirements
MCollective Clients and Servers
Middleware Broker
Passwords and Keys
Puppet Labs Repository
Supported Platforms
Enterprise Linux 6
Enterprise Linux 5
Fedora
Debian and Ubuntu
Other Platforms
Configuring ActiveMQ
Install the Software
Tune the Configuration File
Enable Purging in the Broker
Disable producerFlowControl
Define logins for clients and servers in simpleAuthenticationPlugins
Define permissions for clients and servers in authorizationPlugins
Transports
Disable the Web Console
Start the Service
Firewall Change
Installing Servers
Install the Software
Server Configuration File
Start the Service
Creating a Client
Install the Software
Client Configuration File
Security Considerations
Installing from Source
Using the Installer
Creating an Init Script
Creating a Package
Testing Your Installation
Troubleshooting
Passwords
Networking
3. Command Line Client
Connector
Inventory
Inventory Reports
Discovery
Filters
Combination Filters
Limits
Output
Facts
Classes
Bash Completion
4. Agents
Agent Plugins
Connector Plugins
Installing from Packages
Installing from Source
Copy Agents into Location
Notify mcollectived
Disabling Agents
Using Client Plugins
Finding Community Plugins
5. Maintenance
Keeping Sessions Alive
Activating Changes
Server Statistics
Logging
Monitoring Servers
6. Configuration Management
Installing the Puppet Module
Using r10k
Straight from GitHub
Configuring MCollective using Puppet
Hiera Configuration Data
Sharing Facts with Puppet
Installing Agents with Puppet
7. Controlling Puppet
Install the Puppet Agent
Checking Puppet Status
Controlling the Puppet Daemon
Invoking Ad-Hoc Puppet Runs
Manipulating Puppet Resource Types
Restricting which Resources can be Controlled
Block MCollective from Puppet Resources
Debugging
Unable to Match Server with Class
Unable to Match Server with Fact
Unable to Match Server by Hostname
Some servers ignore messages
II. Complex Installations
8. Middleware Configuration
Open Platform
Network Security
Transport Connectors
Firewall Configurations
IPv6 Dual-Stack Environments
ActiveMQ Config Structure
Detailed Configuration Review
Broker Definition
Topic and Queue Tuning
Authentication and Authorization
Users and Groups
Topics and Queues the Clients Send To
Topics and Queues the Servers Read From
Topics and Queues the Servers Write To
Transport Connectors
Conclusion
ActiveMQ Clusters
Network of Brokers
Master-Slave Redundancy
Encrypted Broker Links
Conclusion
Large-Scale Broker Configurations
Recommendations
Supporting 1000+ Servers
ActiveMQ 5.9.1
Problems Seen in the Wild
Conclusion
9. Middleware Security
Anonymous TLS Security
Overview
Advantages
Disadvantages
Setup
Puppet One Step Process
Create a Java Keystore by Hand
Configure the middleware to use the keystore
Configure the Client and Server by Hand
Testing
Trusted TLS Servers
Overview
Advantages
Disadvantages
Setup Paths
TLS using Puppet CA
Puppet One Step Process
Create a Java trustStore by Hand
Create a Java Keystore by Hand
Configure the Broker by Hand
Configure the MCollective Server by Hand
TLS using Another CA
Create a new Certificate Authority (optional)
Create a Java Truststore from the Certificate Authority
Create a TLS Keypair for every server
Create a Java Keystore
Configure the broker to use these stores we made
Configure the MCollective Server by Hand
Validate Keystore and Truststore
Trusted TLS Clients
Clients of the Puppet CA
Create a Puppet Keypair on the Client Node
Change the Client Configuration
Clients using another CA
Create a Keypair for each Client
Sign the certificate request
Change the Client Configuration
Conclusion
10. Creating Collectives
Deciding When to Create More
Collectives != Clustering
Configuration Traffic
Localizing Traffic
Limiting Access
Conclusion
11. MCollective Security
How Authentication Works
Pre-Shared Key Authentication
Puppet Setup
SSL Authentication
Server Configuration
Installing and Synchronizing with Puppet
Client Configuration
Create a Client Identity
Key Synchronization
RSA Authentication AES Encryption
Server Configuration
Puppet Module
Manual Config
Client Configuration
Key Synchronization
SSHKey Authentication
Puppet
Authorization
Caller IDs
Defining ActionPolicy with Puppet
Creating Policy in Hiera
Distributing Policy Files
Defining ActionPolicy Manually
Auditing
Conclusion
12. Challenges of Worldwide Parallelism
III. Plugins
13. Custom Plugins
Building an Agent
SimpleRPC Framework
Start with a Baseline
Validate Input
Send Replies
Define an Agent DDL
Read Config Files
Install your Agent
Testing the agent
Extending the Agent
Executing Scripts
Executing Commands
Accessing Facts, Agents, and Classes
Results and Exceptions
Logging
Building a Client Application
Baseline Client
Client Filters
Results and Exceptions
Install your Client
Processing Multiple Actions
Creating a Standalone Client
Creating Other Types of Plugins
Authorization Plugins go in util/ directory
Facts Plugins
14. Registration
Registration Agent
Registration Collector
Registration & SSL Security
15. Collecting Responses
Create a Listener
Submit Reply-To
Process Responses
You Hold The Strings Now
A. Appendix
Using r10k to install Puppet Modules
Using the PuppetLabs MCollective Module
ActiveMQ Complete Configuration
Using RabbitMQ
Installing RabbitMQ without Puppet
Enable the STOMP Connector and Management Plugins
Install the CLI Tool
Configuring the Queues for MCollective
Configuring an Exchange for an RabbitMQ Federation
OS Specifics
Configuring Debian and Ubuntu Firewalls
FreeBSD
Using the Next Gen Package Manager
Configuring ActiveMQ
Configuring the Firewall
Building Agents from Source
Mac OS X
Installing Ruby
Installing MCollective
Solaris
Installing on Solaris 11
Installing on Solaris 10 and before
Windows
Acquiring Ruby
Adding the RubyGem Dependencies
Installing MCollective
Managing Ruby versions with RVM
About the Author
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
12. Challenges of Worldwide Parallelism
Next
Next Chapter
13. Custom Plugins
Part III. Plugins
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset