2013-02-02 08:06:40 +00:00
|
|
|
====
|
|
|
|
OS X
|
|
|
|
====
|
|
|
|
|
2013-02-05 23:54:22 +00:00
|
|
|
Dependency Installation
|
2013-02-02 08:06:40 +00:00
|
|
|
-----------------------
|
|
|
|
|
2013-02-05 23:54:22 +00:00
|
|
|
ZeroMQ and swig need to be installed first.
|
2013-02-02 08:06:40 +00:00
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
For installs using `python installed via homebrew`_, sudo should be unnecessary:
|
|
|
|
|
|
|
|
.. _`python installed via homebrew`: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
|
|
|
|
|
|
|
|
Using homebrew with
|
|
|
|
`XCode Command Line Tool (XCode: Preferences: Downloads: Command Line Tools: Install)`_ pre-installed:
|
|
|
|
|
|
|
|
.. _`XCode Command Line Tool (XCode: Preferences: Downloads: Command Line Tools: Install)`: https://developer.apple.com/xcode/
|
2013-02-02 08:06:40 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
brew install python
|
2013-02-02 08:06:40 +00:00
|
|
|
brew install swig
|
|
|
|
brew install zmq
|
2013-08-25 06:59:43 +00:00
|
|
|
pip install salt
|
2013-02-02 08:06:40 +00:00
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
This should pip install salt and its dependencies, such as:
|
|
|
|
Jinja2 M2Crypto msgpack-python pycrypto PyYAML pyzmq markupsafe
|
|
|
|
|
|
|
|
Whereas when using macports, zmq, swig, and pip may need to be installed this way:
|
2013-02-02 08:06:40 +00:00
|
|
|
|
2013-02-05 23:54:22 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-05-10 02:05:42 +00:00
|
|
|
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
|
2013-05-10 02:05:42 +00:00
|
|
|
sudo port install swig-python
|
|
|
|
sudo port install py-pip
|
2013-02-05 23:54:22 +00:00
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
For installs using the OS X 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
|
|
|
|
|
|
|
Salt-Master Customizations
|
|
|
|
--------------------------
|
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
To run salt-master on OS X, the root user maxfiles limit must be increased:
|
2013-02-05 23:54:22 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
sudo launchctl limit maxfiles 4096 8192
|
2013-02-05 23:54:22 +00:00
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
And sudo add this configuration option to the /etc/salt/master file:
|
2013-02-06 00:17:39 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
max_open_files: 8192
|
2013-02-06 00:17:39 +00:00
|
|
|
|
|
|
|
Now the salt-master should run without errors:
|
2013-02-05 23:54:22 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-08-25 06:59:43 +00:00
|
|
|
sudo /usr/local/share/python/salt-master --log-level=all
|
2013-02-02 08:06:40 +00:00
|
|
|
|
|
|
|
Post-installation tasks
|
|
|
|
=======================
|
|
|
|
|
|
|
|
Now go to the :doc:`Configuring Salt</topics/configuration>` page.
|