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
setupadministration structures are two of these frameworks; others incorporate a validation framework, the document server, even the arrival formatterfor 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:
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 hostnamectlset-hostname salt
Note that, by default, Salt looks for a master named salt.
Import the repository key:
wget -O - https://repo.saltstack.com/apt/debian/9/amd64/archive/2018.3.0/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
Add the SaltStack repository into your repository list:
sudo $EDITOR /etc/apt/sources.list.d/saltstack.list deb http://repo.saltstack.com/apt/debian/9/amd64/archive/2018.3.0 stretch main
Run an update:
sudo apt-get update
Install Salt components:
sudo apt-get install salt-master salt-minion