salt/doc/topics/installation/osx.rst

58 lines
1.4 KiB
ReStructuredText
Raw Normal View History

====
OS X
====
2013-02-05 23:54:22 +00:00
Dependency Installation
-----------------------
It should be noted that Homebrew explicitly discourages the `use of sudo`_:
Homebrew is designed to work without using sudo. You can decide to use it but we strongly recommend not to do so. If you have used sudo and run into a bug then it is likely to be the cause. Please dont file a bug report unless you can reproduce it after reinstalling Homebrew from scratch without using sudo
So when using Homebrew, if you want support from the Homebrew community, install this way:
.. code-block:: bash
brew install saltstack
.. _use of sudo: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md#sudo
When using MacPorts, install this way:
2013-02-05 23:54:22 +00:00
.. code-block:: bash
sudo port install salt
When only using the OS X system's pip, install this way:
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
--------------------------
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
sudo launchctl limit maxfiles 4096 8192
2013-02-05 23:54:22 +00:00
And sudo add this configuration option to the /etc/salt/master file:
.. code-block:: bash
max_open_files: 8192
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
=======================
2014-12-11 03:35:09 +00:00
Now go to the :doc:`Configuring Salt</ref/configuration/index>` page.