salt/doc/topics/installation/osx.rst

67 lines
1.3 KiB
ReStructuredText
Raw Normal View History

====
OS X
====
2013-02-05 23:54:22 +00:00
Dependency Installation
-----------------------
2013-02-05 23:54:22 +00:00
ZeroMQ and swig need to be installed first.
2013-02-05 23:54:22 +00:00
Using homebrew:
.. code-block:: bash
brew install swig
brew install zmq
Using macports, zmq, swig, and pip may need to be installed this way:
2013-02-05 23:54:22 +00:00
.. code-block:: bash
sudo port install py-zmq
2013-02-06 00:06:10 +00:00
sudo port install py27-m2crypto
sudo port install py27-crypto
sudo port install py27-msgpack
sudo port install swig-python
sudo port install py-pip
2013-02-05 23:54:22 +00:00
For installs using the OSX system python, pip install needs to use 'sudo':
2013-02-05 23:54:22 +00:00
.. code-block:: bash
2013-02-06 00:06:10 +00:00
sudo pip install salt
2013-02-05 23:54:22 +00:00
For installs using `python installed via homebrew`_, sudo should be unnecessary:
2013-02-05 23:54:22 +00:00
.. code-block:: bash
2013-02-06 00:06:10 +00:00
pip install salt
2013-02-05 23:54:22 +00:00
.. _`python installed via homebrew`: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
Salt-Master Customizations
--------------------------
To run salt-master on OSX, the root user maxfiles limit must be increased:
2013-02-05 23:54:22 +00:00
.. code-block:: bash
sudo launchctl limit maxfiles 10000
2013-02-05 23:54:22 +00:00
And add this configuration option to the /etc/salt/master file:
.. code-block:: bash
max_open_files: 10000
Now the salt-master should run without errors:
2013-02-05 23:54:22 +00:00
.. code-block:: bash
sudo salt-master --log-level=all
Post-installation tasks
=======================
Now go to the :doc:`Configuring Salt</topics/configuration>` page.