This repository contains tools and documentation for using and extending Salt formula project ecosystem.
Contents of this repository:
- cookiecutter
- A template for quick prototyping of new formulas.
- doc
- Sphinx driven salt-formulas project documentation.
- formulas
- Actual formula ecosystem formulas. Using git submodules and myrepos to manage.
- scripts
- Scripts and helpers to work with this repository.
- deploy/heat
- Running salt-formulas on OpenStack Heat provisioner.
- deploy/vagrant
- Running salt-formulas on Vagrant provisioner.
- deploy/scripts
- Deployment and bootstrap scripts
Formulas are registered as submodules with commit marking current release. To checkout latest release, simply init and update submodules:
git submodule init
git submodule update
To checkout master branch and start developing, you can use myrepos tool:
mr --trust-all -j4 run git checkout master
mr --trust-all -j4 update
To make this simpler, you can use Makefile
for the same:
make submodules
make update
Documentation source is living in doc
directory and is including readmes
from formulas directory (so you should ensure they are cloned before building
documentation).
In most cases, you want to build html or pdf so you can use these two
Makefile
targets:
make html
make pdf
Results will be in doc/build
directory.
To add new formula into the ecosystems, follow these steps:
- Request creation of repository on Github salt-formulas organization, include link to current version of formula for review. To do this, join mailing list and use it to let others know (salt-formulas@freelists.org)
- Push your code into new repository, you can also tag new version
- Run
./scripts/add_repo.sh formula_name
to add new Git submodule - Re-generate
.mrconfig
with./scripts/gen_mrconfig.py
, that script will scrapegithub.com/salt-formulas
and generate up-to-date .mrconfig file - Include new formula readme in
doc/source/develop/overview-formula.rst
- Create pull request with
formulas/new_formula_name
(new submodule) and updated.mrconfig
To learn how to install and update salt-formulas, consult the documentation available online at:
http://salt-formulas.readthedocs.io/
In the unfortunate event that bugs are discovered, they should be reported to the appropriate issue tracker. Use Github issue tracker for specific salt formula.
For feature requests, bug reports or blueprints affecting entire ecosystem, use Launchpad salt-formulas project:
https://launchpad.net/salt-formulas
Developers wishing to work on the salt-formulas projects should always base their work on master branch and submit pull request against specific formula.
You should also subscribe to mailing list (salt-formulas@freelists.org):
https://www.freelists.org/list/salt-formulas
Any questions or feedback is always welcome so feel free to join our IRC channel:
#salt-formulas @ irc.freenode.net