SaltStack Installation - SaltStack

How to install saltstack?

You should have the following requirements before you start installation−

  • A Linux server (latest Ubuntu server).
  • sudo or root access to this server.

Use following command to install all the updates:−

Install SaltMaster

Use following apt-get command to install the SaltMaster:

Install Salt Minion

Use following apt-get command to install salt minion.

Install Salt syndic

Use the following apt-get command to install the Salt syndic.

Master Configuration

Salt configuration is an easy process which is default configuration for the master to work on installations. The configuration files uses ‘/etc/salt’ directory to install them and are named after their respective components, such as − /etc/salt/master and /etc/salt/minion.

Once you update the configuration file, restart the Salt master by using the following command.

Minion Configuration

Designing a Salt Minion is exceptionally basic. As a matter of course a Salt Minion will endeavor to associate with the DNS name "salt"; if the Minion can resolve that name accurately, no arrangement is required. Redefine the “master” directive in the minion configuration file, which is typically /etc/salt/minion, as shown in the code below –

Once you update the configuration file, restart the Salt minion with following command.

Key Management

By using AES Encryption for all the communication between the Master and the Minion. Following keys are used as the communication between Master and Minion is authenticated through trusted.

It will produce the following output –

Accept all keys by issuing the command below.

It will produce the following output –

Now again issue the salt key listing command,

It will produce the following output –

Sending Commands

Use following test.ping command to do communication between the Master and a Minion by running the command.

It will produce the following output –

Here, ‘*’ means to all the minions. Here we have one minion – test.ping, it executes the ping command and checks whether the ping is successful or not.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SaltStack Topics