1
0

fedora.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ======
  2. Fedora
  3. ======
  4. Beginning with version 0.9.4, Salt has been available in the primary Fedora
  5. repositories and `EPEL`_. It is installable using ``yum`` or ``dnf``, depending
  6. on your version of Fedora.
  7. .. note::
  8. Released versions of Salt starting with ``2015.5.2`` through ``2016.3.2``
  9. do not have Fedora packages available though `EPEL`_. To install a version
  10. of Salt within this release array, please use SaltStack's `Bootstrap Script`_
  11. and use the git method of installing Salt using the version's associated
  12. release tag.
  13. Release ``2016.3.3`` and onward will have packaged versions available via
  14. `EPEL`_.
  15. **WARNING**: Fedora 19 comes with systemd 204. Systemd has known bugs fixed in
  16. later revisions that prevent the salt-master from starting reliably or opening
  17. the network connections that it needs to. It's not likely that a salt-master
  18. will start or run reliably on any distribution that uses systemd version 204 or
  19. earlier. Running salt-minions should be OK.
  20. Installation
  21. ============
  22. Salt can be installed using ``yum`` and is available in the standard Fedora
  23. repositories.
  24. Stable Release
  25. --------------
  26. Salt is packaged separately for the minion and the master. It is necessary only to
  27. install the appropriate package for the role the machine will play. Typically, there
  28. will be one master and multiple minions.
  29. .. code-block:: bash
  30. yum install salt-master
  31. yum install salt-minion
  32. Installing from ``updates-testing``
  33. -----------------------------------
  34. When a new Salt release is packaged, it is first admitted into the
  35. ``updates-testing`` repository, before being moved to the stable repo.
  36. To install from ``updates-testing``, use the ``enablerepo`` argument for yum:
  37. .. code-block:: bash
  38. yum --enablerepo=updates-testing install salt-master
  39. yum --enablerepo=updates-testing install salt-minion
  40. Installation Using pip
  41. ======================
  42. Since Salt is on `PyPI`_, it can be installed using pip, though most users
  43. prefer to install using a package manager.
  44. Installing from pip has a few additional requirements:
  45. * Install the group 'Development Tools', ``dnf groupinstall 'Development Tools'``
  46. * Install the 'zeromq-devel' package if it fails on linking against that
  47. afterwards as well.
  48. A pip install does not make the init scripts or the /etc/salt directory, and you
  49. will need to provide your own systemd service unit.
  50. Installation from pip:
  51. .. code-block:: bash
  52. pip install salt
  53. .. warning::
  54. If installing from pip (or from source using ``setup.py install``), be
  55. advised that the ``yum-utils`` package is needed for Salt to manage
  56. packages. Also, if the Python dependencies are not already installed, then
  57. you will need additional libraries/tools installed to build some of them.
  58. More information on this can be found :ref:`here
  59. <installing-for-development>`.
  60. Post-installation tasks
  61. =======================
  62. **Master**
  63. To have the Master start automatically at boot time:
  64. .. code-block:: bash
  65. systemctl enable salt-master.service
  66. To start the Master:
  67. .. code-block:: bash
  68. systemctl start salt-master.service
  69. **Minion**
  70. To have the Minion start automatically at boot time:
  71. .. code-block:: bash
  72. systemctl enable salt-minion.service
  73. To start the Minion:
  74. .. code-block:: bash
  75. systemctl start salt-minion.service
  76. Now go to the :ref:`Configuring Salt<configuring-salt>` page.
  77. .. _`Bootstrap Script`: https://github.com/saltstack/salt-bootstrap
  78. .. _`EPEL`: http://fedoraproject.org/wiki/EPEL
  79. .. _`PyPI`: https://pypi.python.org/pypi/salt