index.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. .. _installation:
  2. ============
  3. Installation
  4. ============
  5. This section contains instructions to install Salt. If you are setting up your
  6. environment for the first time, you should install a Salt master on
  7. a dedicated management server or VM, and then install a Salt minion on each
  8. system that you want to manage using Salt. For now you don't need to worry
  9. about your :ref:`architecture <architecture-overview>`, you can easily add
  10. components and modify your configuration later without needing to reinstall
  11. anything.
  12. The general installation process is as follows:
  13. 1. Install a Salt master using the instructions for your platform or by running
  14. the Salt bootstrap script. If you use the bootstrap script, be sure to
  15. include the ``-M`` option to install the Salt master.
  16. 2. Make sure that your Salt minions can :ref:`find the Salt master
  17. <master-dns>`.
  18. 3. Install the Salt minion on each system that you want to manage.
  19. 4. Accept the Salt :ref:`minion keys <using-salt-key>` after the Salt minion
  20. connects.
  21. After this, you should be able to run a simple command and receive salt version returns from
  22. all connected Salt minions.
  23. .. code-block:: bash
  24. salt '*' test.version
  25. Quick Install
  26. -------------
  27. On most distributions, you can set up a **Salt Minion** with the
  28. :ref:`Salt bootstrap <salt-bootstrap>`.
  29. Platform-specific Installation Instructions
  30. -------------------------------------------
  31. These guides go into detail how to install Salt on a given platform.
  32. .. toctree::
  33. :maxdepth: 1
  34. arch
  35. debian
  36. eos
  37. fedora
  38. freebsd
  39. gentoo
  40. openbsd
  41. osx
  42. rhel
  43. solaris
  44. ubuntu
  45. windows
  46. suse
  47. Initial Configuration
  48. ---------------------
  49. .. toctree::
  50. :maxdepth: 1
  51. ../../ref/configuration/index
  52. Additional Installation Guides
  53. ------------------------------
  54. .. toctree::
  55. :maxdepth: 1
  56. ../tutorials/salt_bootstrap
  57. ../tutorials/firewall
  58. ../tutorials/preseed_key
  59. ../tutorials/walkthrough_macosx
  60. ../tutorials/rooted
  61. ../tutorials/standalone_minion
  62. ../tutorials/quickstart
  63. Dependencies
  64. ------------
  65. Salt should run on any Unix-like platform so long as the dependencies are met.
  66. * `Python`_ - Python2 >= 2.7, Python3 >= 3.4
  67. * `msgpack-python`_ - High-performance message interchange format
  68. * `YAML`_ - Python YAML bindings
  69. * `Jinja2`_ - parsing Salt States (configurable in the master settings)
  70. * `MarkupSafe`_ - Implements a XML/HTML/XHTML Markup safe string for Python
  71. * `apache-libcloud`_ - Python lib for interacting with many of the popular
  72. cloud service providers using a unified API
  73. * `Requests`_ - HTTP library
  74. * `Tornado`_ - Web framework and asynchronous networking library
  75. * `futures`_ - Python2 only dependency. Backport of the concurrent.futures package from Python 3.2
  76. Depending on the chosen Salt transport, `ZeroMQ`_ or `RAET`_, dependencies
  77. vary:
  78. * ZeroMQ:
  79. * `ZeroMQ`_ >= 3.2.0
  80. * `pyzmq`_ >= 2.2.0 - ZeroMQ Python bindings
  81. * `PyCrypto`_ - The Python cryptography toolkit
  82. * RAET:
  83. * `libnacl`_ - Python bindings to `libsodium`_
  84. * `ioflo`_ - The flo programming interface raet and salt-raet is built on
  85. * `RAET`_ - The worlds most awesome UDP protocol
  86. Salt defaults to the `ZeroMQ`_ transport, and the choice can be made at install
  87. time, for example:
  88. .. code-block:: bash
  89. python setup.py --salt-transport=raet install
  90. This way, only the required dependencies are pulled by the setup script if need
  91. be.
  92. If installing using pip, the ``--salt-transport`` install option can be
  93. provided like:
  94. .. code-block:: bash
  95. pip install --install-option="--salt-transport=raet" salt
  96. .. note::
  97. Salt does not bundle dependencies that are typically distributed as part of
  98. the base OS. If you have unmet dependencies and are using a custom or
  99. minimal installation, you might need to install some additional packages
  100. from your OS vendor.
  101. Optional Dependencies
  102. ---------------------
  103. * `mako`_ - an optional parser for Salt States (configurable in the master
  104. settings)
  105. * gcc - dynamic `Cython`_ module compiling
  106. .. _`Python`: http://python.org/download/
  107. .. _`ZeroMQ`: http://zeromq.org/
  108. .. _`pyzmq`: https://github.com/zeromq/pyzmq
  109. .. _`msgpack-python`: https://pypi.python.org/pypi/msgpack-python/
  110. .. _`M2Crypto`: https://gitlab.com/m2crypto/m2crypto
  111. .. _`PyCrypto`: https://www.dlitz.net/software/pycrypto/
  112. .. _`YAML`: http://pyyaml.org/
  113. .. _`Jinja2`: http://jinja.pocoo.org/
  114. .. _`MarkupSafe`: https://pypi.python.org/pypi/MarkupSafe
  115. .. _`mako`: http://www.makotemplates.org/
  116. .. _`Cython`: http://cython.org/
  117. .. _`apache-libcloud`: http://libcloud.apache.org
  118. .. _`Requests`: http://docs.python-requests.org/en/latest
  119. .. _`Tornado`: http://www.tornadoweb.org/en/stable/
  120. .. _`libnacl`: https://github.com/saltstack/libnacl
  121. .. _`ioflo`: https://github.com/ioflo/ioflo
  122. .. _`RAET`: https://github.com/saltstack/raet
  123. .. _`libsodium`: https://github.com/jedisct1/libsodium
  124. .. _`futures`: https://github.com/agronholm/pythonfutures
  125. Upgrading Salt
  126. --------------
  127. When upgrading Salt, the master(s) should always be upgraded first. Backward
  128. compatibility for minions running newer versions of salt than their masters is
  129. not guaranteed.
  130. Whenever possible, backward compatibility between new masters and old minions
  131. will be preserved. Generally, the only exception to this policy is in case of
  132. a security vulnerability.
  133. .. seealso::
  134. :ref:`Installing Salt for development <installing-for-development>` and
  135. contributing to the project.
  136. Building Packages using Salt Pack
  137. ---------------------------------
  138. Salt-pack is an open-source package builder for most commonly used Linux
  139. platforms, for example: Redhat/CentOS and Debian/Ubuntu families, utilizing
  140. SaltStack states and execution modules to build Salt and a specified set of
  141. dependencies, from which a platform specific repository can be built.
  142. https://github.com/saltstack/salt-pack