O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Salt multi-master setup (active-passive mode)

In the previous recipe, we talked about configuring a multi-master setup with a couple of Salt masters in active-active mode, where we could run salt commands from either of them. While this method is good for the push mechanism, as the minions are connected to both the masters at all times, there should be a method to achieve the same objective when using the pull method of getting configurations from the Salt master, while being aware of master-server issues and failing over to a redundant node. This can be achieved with the active-passive setup. In this recipe, you will learn how to achieve this objective.

How to do it...

  1. Configure two nodes, salt-master-1 and salt-master-2, and install the salt-master ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required