open-contracting / deploy

Deployment configuration and scripts

Home Page:https://ocdsdeploy.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update documentation for "one dir" Salt

jpmckinney opened this issue · comments

Salt will not publish any more Python packages to PyPI (3005.1 is the last – there is just a "9000" since then).

https://docs.saltproject.io/salt/install-guide/en/latest/topics/upgrade-to-onedir.html

On macOS, it creates some directories at /etc/salt and adds files at /opt/salt including /opt/salt/salt-config.sh. which is symlinked from /usr/local/sbin, so can be run as salt-config.sh. Same for salt-ssh (though if the salt-ssh Python package is installed, that one will take precedence).

To install packages into Salt's Python environment, need to run /opt/salt/bin/pip install ... (I don't think we need any – except where e.g. cryptography doesn't compile on macOS without additional flags, like in the comments in requirements.in.)

For manage.py to work, need to edit #! and:

sudo salt-pip install click

Need to add Saltfile to ~/.salt and rewrite it with absolute paths.

Need to disable the Salt Stack, Inc. (otherwise, minion was running).