Salt Stack Introduction

Posted By : Tarun Singhal | 23-Sep-2018


Salt, or SaltStack, is a remote execution and arrangement administration structure. At first working just as a remote execution structure, Salt has been reached out to contain arrangement administration, organization frameworks, and then some. At its centre, Salt uses a rapid information transport, ZeroMQ, to build up a scrambled channel among ace and follower servers, which can get and run directions all the while, in a bar/sub display arrange.

Salt’s directions can work over numerous working frameworks and dissemination, including Linux, MacOS, and Windows; Linux has a tendency to be the most prominent utilize case, so that is the thing that this course will centre around – ideas continue as before for all OSes.

Salt is profoundly extensible and contains more than twenty pluggable subsystems that can be utilized. The remote execution and setup administration structures are two of these frameworks; others incorporate a validation framework, the document server, even the arrival formatter for normalizing information structures in Salt yield. Despite the fact that these all contain default practices, there is nobody approach to utilize these frameworks.

For some, *nix-based frameworks, Salt offers various choices identified with how we need our Salt updates and form to go. So, regardless of which Salt discharge you select to utilize, the establishment procedure has a tendency to be comparative:

Add repository key and repository
Update the cache for the packing tool
Install the Salt components you want:

  • salt-master
  • salt-minion
  • salt-ssh
  • salt-syndic
  • salt-cloud
  • salt-API
    As an example, let’s walk through installing Salt on a Debian system.

Install the Latest Salt on Debian 9
Set the hostname to salt; update /etc/hosts to use the hostname salt:

sudo hostnamectl set-hostname salt
sudo $EDITOR /etc/hosts
Note that, by default, Salt looks for a master named salt.

Import the repository key:

 wget -O - | sudo apt-key add -

Add the SaltStack repository into your repository list:

 sudo $EDITOR /etc/apt/sources.list.d/saltstack.list

 deb stretch main

Run an update:

 sudo apt-get update

Install Salt components:

 sudo apt-get install salt-master salt-minion


About Author

Author Image
Tarun Singhal

Tarun is a RedHat Certified System Administrator. He is very keen to learn new technologies. He has good command over tools like Ansible, Gitlab-CI etc.

Request for Proposal

Name is required

Comment is required

Sending message..