1
0

debian.rst 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .. _installation-debian:
  2. ===========================
  3. Debian GNU/Linux / Raspbian
  4. ===========================
  5. Debian GNU/Linux distribution and some derivatives such as Raspbian already
  6. have included Salt packages to their repositories. However, current stable
  7. Debian release contains old outdated Salt releases. It is
  8. recommended to use SaltStack repository for Debian as described
  9. :ref:`below <installation-debian-repo>`.
  10. Installation from official Debian and Raspbian repositories is described
  11. :ref:`here <installation-debian-raspbian>`.
  12. .. _installation-debian-repo:
  13. Installation from the Official SaltStack Repository
  14. ===================================================
  15. Packages for Debian 9 (Stretch) and Debian 8 (Jessie) are available in the
  16. Official SaltStack repository.
  17. Instructions are at https://repo.saltstack.com/#debian.
  18. .. note::
  19. Regular security support for Debian 7 ended on April 25th 2016. As a result,
  20. 2016.3.1 and 2015.8.10 will be the last Salt releases for which Debian
  21. 7 packages are created.
  22. .. _installation-debian-raspbian:
  23. Installation from the Debian / Raspbian Official Repository
  24. ===========================================================
  25. The Debian distributions contain mostly old Salt packages
  26. built by the Debian Salt Team. You can install Salt
  27. components directly from Debian but it is recommended to
  28. use the instructions above for the packages from the official
  29. Salt repository.
  30. On Jessie there is an option to install Salt minion from Stretch with
  31. `python-tornado` dependency from `jessie-backports` repositories.
  32. To install fresh release of Salt minion on Jessie:
  33. #. Add `jessie-backports` and `stretch` repositories:
  34. **Debian**:
  35. .. code-block:: bash
  36. echo 'deb http://httpredir.debian.org/debian jessie-backports main' >> /etc/apt/sources.list
  37. echo 'deb http://httpredir.debian.org/debian stretch main' >> /etc/apt/sources.list
  38. **Raspbian**:
  39. .. code-block:: bash
  40. echo 'deb http://archive.raspbian.org/raspbian/ stretch main' >> /etc/apt/sources.list
  41. #. Make Jessie a default release:
  42. .. code-block:: bash
  43. echo 'APT::Default-Release "jessie";' > /etc/apt/apt.conf.d/10apt
  44. #. Install Salt dependencies:
  45. **Debian**:
  46. .. code-block:: bash
  47. apt-get update
  48. apt-get install python-zmq python-systemd/jessie-backports python-tornado/jessie-backports salt-common/stretch
  49. **Raspbian**:
  50. .. code-block:: bash
  51. apt-get update
  52. apt-get install python-zmq python-tornado/stretch salt-common/stretch
  53. #. Install Salt minion package from Latest Debian Release:
  54. .. code-block:: bash
  55. apt-get install salt-minion/stretch
  56. .. _debian-install-pkgs:
  57. Install Packages
  58. ================
  59. Install the Salt master, minion or other packages from the repository with
  60. the `apt-get` command. These examples each install one of Salt components, but
  61. more than one package name may be given at a time:
  62. - ``apt-get install salt-api``
  63. - ``apt-get install salt-cloud``
  64. - ``apt-get install salt-master``
  65. - ``apt-get install salt-minion``
  66. - ``apt-get install salt-ssh``
  67. - ``apt-get install salt-syndic``
  68. .. _debian-config:
  69. Post-installation tasks
  70. =======================
  71. Now, go to the :ref:`Configuring Salt <configuring-salt>` page.