1
0

freebsd.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. =======
  2. FreeBSD
  3. =======
  4. Installation
  5. ============
  6. Salt is available in the FreeBSD ports tree at `sysutils/py-salt
  7. <https://www.freshports.org/sysutils/py-salt/>`_.
  8. FreeBSD binary repo
  9. ===================
  10. For Python 2.7 use:
  11. Install Salt via the official package repository. Salt is packaged both as a Python 2.7 or 3.6 version.
  12. .. code-block:: bash
  13. pkg install py27-salt
  14. For Python 3.6 use:
  15. .. code-block:: bash
  16. pkg install py36-salt
  17. FreeBSD ports
  18. =============
  19. Installation from ports:
  20. .. code-block:: bash
  21. cd /usr/ports/sysutils/py-salt
  22. make install
  23. Python 3.6 can be used by setting default Python version to 3.6:
  24. .. code-block:: text
  25. echo "DEFAULT_VERSIONS+= python=3.6" >> /etc/make.conf
  26. Post-installation tasks
  27. =======================
  28. **rc.conf**
  29. Activate the Salt Master in ``/etc/rc.conf``:
  30. .. code-block:: bash
  31. sysrc salt_master_enable="YES"
  32. **Start the Master**
  33. Start the Salt Master as follows:
  34. .. code-block:: bash
  35. service salt_master start
  36. **rc.conf**
  37. Activate the Salt Minion in ``/etc/rc.conf``:
  38. .. code-block:: bash
  39. sysrc salt_minion_enable="YES"
  40. **Start the Minion**
  41. Start the Salt Minion as follows:
  42. .. code-block:: bash
  43. service salt_minion start
  44. Now go to the :ref:`Configuring Salt<configuring-salt>` page.