Salt formula for ObsPy
Provides a Salt state for installing the ObsPy python framework. The default is to install the latest stable release using the supported methods, and packages from official operating system repositories whenever possible. A version of this formula valid for the current stable release is available in the ObsPy repository.
For production deployments, obspy can be installed by simply adding the obspy
state to your targets.
obspy
- resolves all dependencies and performs normal stable installobspy.dependencies
- installs only dependencies from OS package repositoryobspy.pip
- installs obspy via pip PyPIobspy.git
- installs obspy master branch via git repoobspy.testing
- force upgrade of git install via pip - Development ONLY!
Adds deb repo with gpg key, and installs package automatically
The current behavior is to fall back to a PIP install. The package dependencies will be installed via yum. This assumes you have already set up the EPEL repo, and does not check for this. The salt program is found in EPEL, so if you installed from there, or used the bootstrap salt script, this should already be set up.
Experimental PIP install, same as RHEL, install dependencies from package, then use PIP for the rest. This is currently set up to install the latest ObsPy release, which is not yet Python 3, so the dependencies and pip install all use the python2
Arch packages (The python (3) deps are stubbed out in map.jinja
in anticipation of this release).
Assuming this is installed in base path (e.g. '/srv/salt/obspy')
Using top file:
# Example top.sls file snippet
# Installs obspy on all Linux machines.
base:
'G@kernel:Linux':
- match: compound
- obspy
Using shell (dry run): From salt master
$ sudo salt -G 'kernel:Linux' state.sls obspy test=True
Local or masterless minion
$ sudo salt-call --local state.sls obspy
Mark C. Williams (2014)
This formula was donated to the ObsPy project and is released under the GNU Lesser General Public License, Version 3 (LGPLv3)