
Conflicts: - doc/ref/configuration/master.rst - doc/ref/modules/all/index.rst - doc/topics/grains/index.rst - doc/topics/releases/2016.3.4.rst - doc/topics/spm/spm_formula.rst - doc/topics/tutorials/cron.rst - doc/topics/tutorials/index.rst - doc/topics/tutorials/stormpath.rst - salt/engines/slack.py - salt/log/handlers/fluent_mod.py - salt/modules/cyg.py - salt/modules/junos.py - salt/modules/namecheap_dns.py - salt/modules/namecheap_domains.py - salt/modules/namecheap_ns.py - salt/modules/namecheap_ssl.py - salt/modules/namecheap_users.py - salt/modules/reg.py - salt/modules/tomcat.py - salt/modules/vault.py - salt/modules/win_file.py - salt/modules/zpool.py - salt/output/highstate.py - salt/renderers/pass.py - salt/runners/cache.py - salt/states/boto_apigateway.py - salt/states/boto_iam.py - salt/states/boto_route53.py - salt/states/msteams.py - salt/states/reg.py - salt/states/win_iis.py - tests/integration/modules/test_cmdmod.py - tests/integration/states/test_user.py - tests/support/helpers.py - tests/unit/cloud/clouds/test_openstack.py - tests/unit/fileserver/test_gitfs.py - tests/unit/modules/test_junos.py - tests/unit/pillar/test_git.py - tests/unit/states/test_win_path.py - tests/unit/test_pillar.py - tests/unit/utils/test_format_call.py - tests/unit/utils/test_utils.py - tests/unit/utils/test_warnings.py
5.7 KiB
Installation
This section contains instructions to install Salt. If you are
setting up your environment for the first time, you should install a
Salt master on a dedicated management server or VM, and then install a
Salt minion on each system that you want to manage using Salt. For now
you don't need to worry about your architecture <architecture-overview>
, you can
easily add components and modify your configuration later without
needing to reinstall anything.
The general installation process is as follows:
- Install a Salt master using the instructions for your platform or by
running the Salt bootstrap script. If you use the bootstrap script, be
sure to include the
-M
option to install the Salt master. - Make sure that your Salt minions can
find the Salt master <master-dns>
. - Install the Salt minion on each system that you want to manage.
- Accept the Salt
minion keys <using-salt-key>
after the Salt minion connects.
After this, you should be able to run a simple command and receive returns from all connected Salt minions.
salt '*' test.ping
Quick Install
On most distributions, you can set up a Salt Minion
with the Salt bootstrap <salt-bootstrap>
.
Platform-specific Installation Instructions
These guides go into detail how to install Salt on a given platform.
arch debian eos fedora freebsd gentoo openbsd osx rhel solaris ubuntu windows suse
Initial Configuration
../../ref/configuration/index
Additional Installation Guides
../tutorials/salt_bootstrap ../tutorials/firewall ../tutorials/preseed_key ../tutorials/walkthrough_macosx ../tutorials/rooted ../tutorials/standalone_minion ../tutorials/quickstart
Dependencies
Salt should run on any Unix-like platform so long as the dependencies are met.
- Python 2.7 >= 2.7 <3.0
- msgpack-python - High-performance message interchange format
- YAML - Python YAML bindings
- Jinja2 - parsing Salt States (configurable in the master settings)
- MarkupSafe - Implements a XML/HTML/XHTML Markup safe string for Python
- apache-libcloud - Python lib for interacting with many of the popular cloud service providers using a unified API
- Requests - HTTP library
- Tornado - Web framework and asynchronous networking library
- futures - Backport of the concurrent.futures package from Python 3.2
Depending on the chosen Salt transport, ZeroMQ or RAET, dependencies vary:
- ZeroMQ:
- RAET:
Salt defaults to the ZeroMQ transport, and the choice can be made at install time, for example:
python setup.py --salt-transport=raet install
This way, only the required dependencies are pulled by the setup script if need be.
If installing using pip, the --salt-transport
install
option can be provided like:
pip install --install-option="--salt-transport=raet" salt
Note
Salt does not bundle dependencies that are typically distributed as part of the base OS. If you have unmet dependencies and are using a custom or minimal installation, you might need to install some additional packages from your OS vendor.
Optional Dependencies
- mako - an optional parser for Salt States (configurable in the master settings)
- gcc - dynamic Cython module compiling
Upgrading Salt
When upgrading Salt, the master(s) should always be upgraded first. Backward compatibility for minions running newer versions of salt than their masters is not guaranteed.
Whenever possible, backward compatibility between new masters and old minions will be preserved. Generally, the only exception to this policy is in case of a security vulnerability.
Installing Salt for development <installing-for-development>
and contributing to the project.
Building Packages using Salt Pack
Salt-pack is an open-source package builder for most commonly used Linux platforms, for example: Redhat/CentOS and Debian/Ubuntu families, utilizing SaltStack states and execution modules to build Salt and a specified set of dependencies, from which a platform specific repository can be built.