Extending SaltStack

Extend the power of your infrastructure and applications with Salt modules

Extending SaltStack

This ebook is included in a Mapt subscription
Joseph Hall

Extend the power of your infrastructure and applications with Salt modules
$0.00
$30.60
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785888618
Paperback240 pages

Book Description

Salt already ships with a very powerful set of tools, but that doesn't mean that they all suit your needs perfectly. By adding your own modules and enhancing existing ones, you can bring the functionality that you need to increase your productivity. Extending SaltStack follows a tutorial-based approach to explain different types of modules, from fundamentals to complete and full-functioning modules.

Starting with the Loader system that drives Salt, this book will guide you through the most common types of modules. First you will learn how to write execution modules. Then you will extend the configuration using the grain, pillar, and SDB modules. Next up will be state modules and then the renderers that can be used with them. This will be followed with returner and output modules, which increase your options to manage return data. After that, there will be modules for external file servers, clouds, beacons, and finally external authentication and wheel modules to manage the master.

With this guide in hand, you will be prepared to create, troubleshoot, and manage the most common types of Salt modules and take your infrastructure to new heights!

Table of Contents

Chapter 1: Starting with the Basics
Using plugins
Extending the loader system
Loading modules with Python
Summary
Chapter 2: Writing Execution Modules
Writing Salt modules
The final module
Troubleshooting execution modules
Summary
Chapter 3: Extending Salt Configuration
Setting grains dynamically
Creating external pillars
Troubleshooting grains and pillars
Writing SDB modules
Using SDB modules
Troubleshooting SDB modules
Summary
Chapter 4: Wrapping States Around Execution Modules
Forming a state module
Troubleshooting state modules
Summary
Chapter 5: Rendering Data
Understanding file formats
Building a serializing renderer
Building a templating renderer
Troubleshooting renderers
Summary
Chapter 6: Handling Return Data
Returning data to external destinations
Returning data to the master
Listening to event data
Your first returner
The final module
Troubleshooting returners
Writing outputter modules
Troubleshooting outputters
Summary
Chapter 7: Scripting with Runners
Using Salt's local client
The final module
Troubleshooting runners
Summary
Chapter 8: Adding External File Servers
How Salt uses files
Looking at each function
The final module
Troubleshooting file servers
Summary
Chapter 9: Connecting to the Cloud
Understanding cloud components
Writing a generic cloud module
The final cloud module
Troubleshooting cloud modules
Summary
Chapter 10: Monitoring with Beacons
Watching for data
The final beacon module
Troubleshooting beacons
Summary
Chapter 11: Extending the Master
Using external authentication
Troubleshooting external authentication
Managing the Master with the wheel modules
Troubleshooting wheel modules
Summary

What You Will Learn

  • Understand the working of Salt's Loader system
  • Write several of the most common types of Salt modules
  • Interact between different kinds of modules and build new ones
  • Submit open source modules upstream to the Salt project
  • Make Salt interact with third-party services and applications

Authors

Table of Contents

Chapter 1: Starting with the Basics
Using plugins
Extending the loader system
Loading modules with Python
Summary
Chapter 2: Writing Execution Modules
Writing Salt modules
The final module
Troubleshooting execution modules
Summary
Chapter 3: Extending Salt Configuration
Setting grains dynamically
Creating external pillars
Troubleshooting grains and pillars
Writing SDB modules
Using SDB modules
Troubleshooting SDB modules
Summary
Chapter 4: Wrapping States Around Execution Modules
Forming a state module
Troubleshooting state modules
Summary
Chapter 5: Rendering Data
Understanding file formats
Building a serializing renderer
Building a templating renderer
Troubleshooting renderers
Summary
Chapter 6: Handling Return Data
Returning data to external destinations
Returning data to the master
Listening to event data
Your first returner
The final module
Troubleshooting returners
Writing outputter modules
Troubleshooting outputters
Summary
Chapter 7: Scripting with Runners
Using Salt's local client
The final module
Troubleshooting runners
Summary
Chapter 8: Adding External File Servers
How Salt uses files
Looking at each function
The final module
Troubleshooting file servers
Summary
Chapter 9: Connecting to the Cloud
Understanding cloud components
Writing a generic cloud module
The final cloud module
Troubleshooting cloud modules
Summary
Chapter 10: Monitoring with Beacons
Watching for data
The final beacon module
Troubleshooting beacons
Summary
Chapter 11: Extending the Master
Using external authentication
Troubleshooting external authentication
Managing the Master with the wheel modules
Troubleshooting wheel modules
Summary

Book Details

ISBN 139781785888618
Paperback240 pages
Read More

Read More Reviews