Leanpub Header

Skip to main content

Saltstack For DevOps

Extremely fast and simple IT automation and configuration management

SaltStack For DevOps Through this book you will learn how to use one of the most powerful DevOps orchestration tools.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
557
Readers
194
Pages
About

About

About the Book

Every book has a story, this story has a book

I wanted to resign from my job, my suggestions about working on creating a centralized configuration system have not been considered by the team leader. Worse than that, it was not something he really understood. Even my colleagues at that time didn't understand what is a configuration management system. At that time, "DevOps" wasn't a buzz word and folks in software engineering were not conscious about the power of what was coming next.

Like many of us, I'm lazy when it comes to repeating tasks manually but passionate when I automate them. Automation = Power.

I love automation, and in that previous job, there are hundreds of configuration files and thousands of variables to copy from text files then to adjust in some platforms, a huge number of poorly-configured servers, and hundreds of servers to manage by a very small team.. I wanted to work on the automation of some weekly procedures. I was aware that this is a good solution, but it was not the priority neither for the manager nor for the client. I'm talking about a role within a team of 14 people working on the integration of several heavy applications (mainly Java/Oracle, PHP/Mysql, Nginx, Python/Jython) with a complex architecture, tens of versions/environments to manage, and a critical infrastructure covering all the European continent. You can imagine how the word "change" can be seen as a horror movie for team leaders and decision-makers.

In the beginning, I was obliged to follow my boss's guidelines and the work methods my team has adopted, which have one goal: satisfying as fast as possible the unceasing demands of the client.

No, but .. wait, this is not satisfying for me!

I spent almost two weeks searching and working on some solutions before I convinced my boss to give me the time to set up an application prototype that will ease the heavy load, accelerate daily procedures and reduce human errors.

First, I created a configuration management tool using Python/Sqlite3, I spent weeks developing it and it was funny. Some weeks later, I discovered that a tool called Salt exists and found it then a good solution to replace my homemade platform. It meets the expectations of the integration process, or rather, the continuous integration, deployments, and automatic tests.

I hesitated between several alternatives: Ansible, Puppet, CFEngine, Chef .. etc. The choice was made based on several criteria (I was looking for robust, fast configuration management and remote execution tool that everybody can use without learning a new programming language) .. I have never regretted my choice. I found some difficulties. Let me admit: **many** difficulties. And honestly, when I started learning Salt, the official documentation was not as complete and good as now. I even still think the actual documentation can be better.

This book is the fruit of long hours of work and self-learning.

Well, in the beginning, I wanted to resign from my job, just a few days after discovering Salt, I was in love with it, and with what I was doing and learning. I tried Salt the first time when I saw my team taking more than 3 days (sometimes more) to configure hosted platforms at each deployment (we had more than 10 environments per application). After setting it up, the same procedure was taking less than 1/2 hour.

Through this book, it's your turn to discover SaltStack, and I will be your guide.

What are you going to learn?

You will learn how to:

  • How to install and configure Salt
  • How remote execution works in Salt
  • How to describe your infrastructure and apps deployments using code
  • How to create an event-based reactive infrastructure
  • How to make automated changes to your data center following conditions you describe
  • How to orchestrate your data center and app releases
  • What are the best practices
  • How to scale Salt when your infrastructure grows
  • How to troubleshoot Salt

All examples in this book are tested.

The book comes with a free Salt Cheat Sheet.

Price

Pick Your Price...

Minimum price

$25.00

$35.00

You pay

$35.00

Author earns

$28.00
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Aymen El Amri

Aymen El Amri is an author, entrepreneur, trainer, and polymath software engineer who has excelled in a range of roles and responsibilities in the field of technology including DevOps & Cloud Native, Cloud Architecture, Python, NLP, Data Science, and more.

Aymen has trained hundreds of software engineers and written multiple books and courses read by thousands of other developers and software engineers.

Aymen El Amri has a practical approach to teaching based on breaking down complex concepts into easy-to-understand language and providing real-world examples that resonate with his audience.

Some projects he founded are FAUN, eralabs.io, and Marketto. You can find Aymen on Twitter and Linkedin.

Leanpub Podcast

Episode 88

An Interview with Aymen El Amri

Contents

Table of Contents

Preface

  1. Every Book Has A Story, This Story Has A Book
  2. To Whom Is This Book Addressed?
  3. Conventions Used In This Book
  4. How To Properly Enjoy This Book
  5. How To Contribute To This Book?
  6. About The Author

Introduction

  1. Configuration Management And Data Center Automation
  2. DevOps Tooling

Getting Started

  1. Presentation
  2. A brief summary
  3. Expanding Salt Use
  4. Conclusion

Installation

  1. Introduction
  2. Dependencies
  3. Installation
  4. Advanced Installation
  5. Installation For Test
  6. Practical Installation Case

Configuration And Troubleshooting

  1. Introduction
  2. Configuration Of A Masterless Minion
  3. Configuration of salt-master
  4. Configuration of salt-minion
  5. Post Installation
  6. General Troubleshooting and Prerequisites Checklist
  7. Troubleshooting salt-master
  8. Troubleshooting salt-minion
  9. Troubleshooting Ports
  10. Using salt-call
  11. A Note About Redhat Enterprise Linux 5

Basic Concepts

  1. Python
  2. YAML: The Human Readable Serialization Language
  3. Jinja: A Templating Language
  4. The Master: salt-master
  5. The Minion: salt-minion
  6. Expanding Salt with salt-syndic
  7. Key Management with salt-key
  8. Salt Runners Interface: salt-run
  9. The Data Aspect of Salt: Grains
  10. Targeting grains
  11. Extending The Minion Features With Saltutil
  12. Formatting Outputs with Outputter
  13. Describing Configurations and States
  14. The Top File
  15. Using Master’s Pillars
  16. Remote Execution
  17. Event-Based Execution With Reactors
  18. From States To Formulas
  19. SaltStack And Vagrant
  20. SaltStack And Docker
  21. Salt Cloud

Real World Examples

  1. Introduction
  2. Vagrant Quick-Start
  3. Installation And Configuration Of Apache Web Server
  4. Creating You Own Private Storage Cloud (SaltStack + Vagrant + OwnCloud)
  5. Scheduling Monitoring Tasks Using SaltStack
  6. Automating Wordpress / LAMP Installation And Configuration
  7. Docker Quick-Start
  8. Getting Docker Container System Information Using SaltStack
  9. Monitoring Docker Containers Using SaltStack
  10. Provisioning Docker Containers With SaltStack
  11. Using Salt Cloud With Linode Cloud
  12. Using Salt Cloud With Amazon Web Services (AWS)

SaltStack Cheat Sheet

  1. Installing SaltStack - Ubuntu 14.*
  2. Bootstrapping Salt Minion
  3. Salt Key Management
  4. Debugging
  5. SaltStack Documentation
  6. SaltStack Modules And Functions
  7. Compound Matchers
  8. Upgrades & Versions
  9. Packages Manipulation
  10. Reboot & Uptime
  11. Using Grains
  12. Syncing Data
  13. Running System Commands
  14. Working With Services
  15. Network Management
  16. Working With HTTP Requests
  17. Job Management
  18. Scheduling Feature
  19. Working With SLS
  20. Testing States
  21. Load testing
  22. State Declaration Structure
  23. SaltStack Github Repositories

Best Practices

  1. Introduction
  2. Organizing Grains:
  3. Your Own Execution Modules vs Working With Jinja
  4. Using The Documentation
  5. Following Guidelines
  6. Automate Your Automation
  7. Start Your Cheat Sheet
  8. The Usual Lecture From The Local System Administrator
  9. Updates, Upgrades And Backups
  10. Following Official Guidelines

Community, Support & Commercial Sercices

  1. SaltStack Source Code On Github
  2. Official Resources
  3. Community Ressources
  4. Meet-ups Around SaltStack
  5. SaltStackInc
  6. About eralabs

Afterword

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub