Latest stable build from the selected branch:
The output of
md5 <salt pkg> should match the contents of the
corresponding md5 file.
brew install saltstack
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 don’t file a bug report unless you can reproduce it after reinstalling Homebrew from scratch without using sudo
sudo port install salt
When only using the macOS system's pip, install this way:
sudo pip install salt
Salt master on macOS is not tested or supported by SaltStack. See SaltStack Platform Support for more information.
To run salt-master on macOS, sudo add this configuration option to the /etc/salt/master file:
On versions previous to macOS 10.10 (Yosemite), increase the root user maxfiles limit:
sudo launchctl limit maxfiles 4096 8192
On macOS 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!
Now the salt-master should run without errors:
sudo salt-master --log-level=all