1
0

freebsd.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. .. code-block:: bash
  12. pkg install py27-salt
  13. For Python 3.6 use:
  14. .. code-block:: bash
  15. pkg install py36-salt
  16. FreeBSD ports
  17. =============
  18. Installation from ports:
  19. .. code-block:: bash
  20. cd /usr/ports/sysutils/py-salt
  21. make install
  22. Python 3.6 can be used by setting default Python version to 3.6:
  23. .. code-block:: text
  24. echo "DEFAULT_VERSIONS+= python=3.6" >> /etc/make.conf
  25. Post-installation tasks
  26. =======================
  27. **rc.conf**
  28. Activate the Salt Master in ``/etc/rc.conf``:
  29. .. code-block:: bash
  30. sysrc salt_master_enable="YES"
  31. **Start the Master**
  32. Start the Salt Master as follows:
  33. .. code-block:: bash
  34. service salt_master start
  35. **rc.conf**
  36. Activate the Salt Minion in ``/etc/rc.conf``:
  37. .. code-block:: bash
  38. sysrc salt_minion_enable="YES"
  39. **Start the Minion**
  40. Start the Salt Minion as follows:
  41. .. code-block:: bash
  42. service salt_minion start
  43. Now go to the :ref:`Configuring Salt<configuring-salt>` page.