Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LEARNING PUPPET

You're reading from   LEARNING PUPPET Build intelligent software stacks with the Puppet configuration management suite

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781784399832
Length 304 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Puppet Development in Isolation FREE CHAPTER 2. Managing Packages in Puppet 3. My First Puppet Module 4. Monitoring Your Web Server 5. Load Balancing the Cluster 6. Scaling Up the Puppet Environment 7. Making the Configuration Dynamic 8. Extending Puppet 9. The Puppet Enterprise Console 10. Troubleshooting Puppet Index

Creating a Nagios module for the client and server

In Chapter 3, My First Puppet Module, we practiced creating our first Puppet module for the web server that was deployed by the class called webapp. Now, we'll create another module for Nagios that incorporates a parent class called nagios and two subclasses, one for the Nagios Server called nagios::server and another for the Nagios Client called the nagios::client.

Puppet dictates the class names that we can use within the module. Let's take an example of the class nagios::server that we will create. The double colon (::) notation in the class name acts as a separator between the parent class and the subclass. In this case, server is a subclass of the parent class called nagios. This nagios parent class must reside in the Puppet module called nagios, or else Puppet won't be able to find the class. If you would declare the class nagios inside the webapp class that was created in Chapter 3, My First Puppet Module, and apply...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image