Install SaltStack on macOS Big Sur
Installing SaltStack on macOS is a pain.
I tried the easy which fail due to a very big problem.
This is the solution
The pain
Homebrew is a pain because they don’t package correctly SaltStack and finally, we need to find the right way to fix it.
Never install using:
The fix
Salt isn’t compatible with the actual (default) python from Homebrew.
Install Python
We need Python 3.7 so we install it using the bottled version:
Install SaltStack
Finally, we install SaltStack using a fork of the formula which force “Python 3.7” (the right version):
We firstly installed [email protected] with the bottle to avoid a loss of time due to the compilation of Python 3.7.
It’s done and you’ve finally a functional salt.
Bonus
If you want to have clean states, you can be interested in salt-lint: A command-line utility that checks for best practices in Salt…