Book Image

Mastering SaltStack

By : Joseph Hall
Book Image

Mastering SaltStack

By: Joseph Hall

Overview of this book

Table of Contents (19 chapters)
Mastering SaltStack
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Using Salt with REST

We've discussed using Salt not only to manage an infrastructure from within, but also to grow the infrastructure using Salt Cloud. But what happens when you need to manage your infrastructure from the outside? Or if you want your infrastructure to take advantage of external systems? In this chapter, we'll explore how Salt makes use of REST interfaces, both as a client and as a server. We'll be covering the following topics here:

  • Taking advantage of Salt's HTTP library

  • Setting up Salt API

  • Communicating as a client or as a server

  • Parsing data