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

Configuring the Salt cloud environment

Before learning the features of Salt cloud in detail, it is important to know about its core components and how they work with each other to provide the service. In this recipe, you will learn about the core components and configuration of the Salt cloud environment.

How to do it...

We will use Amazon EC2 to demonstrate the cloud capabilities of Salt. To configure a Salt master node in Amazon EC2, we will use a Virtual Private Cloud (VPC) in Amazon EC2.

  1. Create the following directories and files in the base configuration directory of Salt, that is, /etc/salt:

    Directories:

    • /etc/salt/cloud.providers.d
    • /etc/salt/cloud.profiles.d

    Files:

    • /etc/salt/cloud
    • /etc/salt/cloud.providers
    • /etc/salt/cloud.profiles
    • /etc/salt/cloud.map ...

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