Ubuntu Installation

Add repository

The latest packages for Ubuntu are published in the saltstack PPA. Add the repository to your system, import the PPA key, and refresh the package data with the following commands:

echo deb http://ppa.launchpad.net/saltstack/salt/ubuntu `lsb_release -sc` main | sudo tee /etc/apt/sources.list.d/saltstack.list
wget -q -O- "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4759FA960E27C0A6" | sudo apt-key add -
sudo apt-get update

Install packages

Install the Salt master, minion, or syndic from the repository with the apt-get command. These examples each install one daemon, but more than one package name may be given at a time:

sudo apt-get install salt-master
sudo apt-get install salt-minion
sudo apt-get install salt-syndic

Configuration

Debian based systems will launch the daemons right after package install, but you may need to make changes to the configuration files in /etc/salt (see the configuration files), such as:

  • set the minion id and salt master name in /etc/salt/minion
  • enable the file_roots and pillar_roots options in /etc/salt/master
  • configure syndic to relay commands from another master

After making any configuration changes, re-start the affected daemons (or use 'stop' and 'start' as needed). E.g.:

sudo /etc/init.d/salt-minion restart
sudo /etc/init.d/salt-master restart
sudo /etc/init.d/salt-syndic stop
sudo /etc/init.d/salt-syndic start

Comments

comments powered by Disqus

Table Of Contents

Previous topic

Debian

Next topic

Fedora & CentOS / Enterprise Linux