2013-02-02 08:06:40 +00:00
====
OS X
====
2016-06-15 17:52:02 +00:00
Installation from the Official SaltStack Repository
===================================================
2013-02-02 08:06:40 +00:00
2016-06-15 17:52:02 +00:00
**Latest stable build from the selected branch** :
|osxdownload|
2014-11-06 15:37:38 +00:00
2016-06-15 17:52:02 +00:00
The output of `` md5 <salt pkg> `` should match the contents of the
corresponding md5 file.
`Earlier builds from supported branches <https://repo.saltstack.com/osx/> `__
2014-11-06 15:37:38 +00:00
2016-06-15 17:52:02 +00:00
`Archived builds from unsupported branches <https://repo.saltstack.com/osx/archive/> `__
Installation from Homebrew
==========================
2013-02-02 08:06:40 +00:00
.. code-block :: bash
2014-11-06 15:10:32 +00:00
brew install saltstack
2013-08-25 06:59:43 +00:00
2016-06-15 17:52:02 +00:00
It should be noted that Homebrew explicitly discourages the `use of sudo`_ :
2014-11-06 15:37:38 +00:00
2016-06-15 17:52:02 +00:00
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 don’ t file a bug report unless you can reproduce it after reinstalling Homebrew from scratch without using sudo
2014-11-06 15:37:38 +00:00
2016-06-15 17:52:02 +00:00
.. _use of sudo: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md#sudo
2014-11-06 15:37:38 +00:00
2016-06-15 17:52:02 +00:00
Installation from MacPorts
==========================
2013-02-02 08:06:40 +00:00
2013-02-05 23:54:22 +00:00
.. code-block :: bash
2014-10-26 20:20:13 +00:00
sudo port install salt
2014-11-06 15:37:38 +00:00
2016-06-15 17:52:02 +00:00
Installation from Pip
=====================
2014-10-26 20:20:13 +00:00
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
2016-06-15 17:52:02 +00:00
==========================
2016-08-31 15:51:36 +00:00
.. note ::
Salt master on OS X is not tested or supported by SaltStack. See `SaltStack Platform Support <https://saltstack.com/product-support-lifecycle/> `_ for more information.
2016-06-15 17:52:02 +00:00
To run salt-master on OS X, sudo add this configuration option to the /etc/salt/master file:
2013-02-05 23:54:22 +00:00
2016-06-15 17:52:02 +00:00
.. code-block :: bash
2013-02-05 23:54:22 +00:00
2016-06-15 17:52:02 +00:00
max_open_files: 8192
2015-03-12 16:02:53 +00:00
2016-06-15 17:52:02 +00:00
On versions previous to OS X 10.10 (Yosemite), increase the root user maxfiles limit:
2015-03-12 16:02:53 +00:00
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
2016-06-15 17:52:02 +00:00
.. note ::
2013-02-06 00:17:39 +00:00
2016-06-15 17:52:02 +00:00
On OS X 10.10 (Yosemite) and higher, maxfiles should not be adjusted. The
default limits are sufficient in all but the most extreme scenarios.
Overriding these values with the setting below will cause system
instability!
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
2014-10-26 20:20:13 +00:00
sudo salt-master --log-level=all
2013-02-02 08:06:40 +00:00
Post-installation tasks
=======================
2015-03-12 16:02:53 +00:00
Now go to the :doc: `Configuring Salt</ref/configuration/index>` page.
2016-06-15 17:52:02 +00:00