salt-stack Getting started with salt-stack Installation or Setup


Salt can be installed via :

  • salt-bootstrap: a shell script, that can install salt (client and/or master packages) on standard Unix/Linux platform,
  • Platform Specific binaries: available for Windows, Mac OS X and Linux,
  • Package Management systems: available for pacman, apt-get, yum and other package management systems.

Salt Installation via Salt-Bootstrap

Download Salt:

  • via curl: curl -o -L
  • via wget: wget -O provides many options. Among them executing the script with:

  • -M flag will install salt-master,
  • -N flag will not install salt-minion package,
  • -A flag can be used to define the salt-master ip.

It can be invoked with the version of salt to be installed.

Common pattern are:

  • sh -M -N stable to install a "stable" salt master,
  • sh -A <ip> stable to install a "stable" salt minion, with the master IP defined.

Official Documentation can be found here.

Salt Installation via platform specific binaries:

Latest stable installers can be found here:

Salt Installation via package management systems

Under Ubuntu 16.04

  • add the saltstack repository key to APT via: wget -O - | sudo apt-key add -
  • add the repository in apt configuration via sudo echo "deb denial main" > /etc/apt/sources.list.d/saltstack.list
  • update your apt cache via apt-get update

If you wish to install a salt-master run apt-get install salt-master, otherwise apt-get install salt-minion.

Instructions for other OSes can be found here