geoadmin/service-sphinxsearch — pull request #61 by ltclm (2014-01-23 12:03:33+00:00)
Title: Dev ltclm pg2sphinx trigger

This pull requests contains the following modifications:
* **test/pg2sphinx_trigger.py**: python script which can list or update sphinx indexes which are using a certain database source. the database source can be passed to the script with the parameter -d or --database_filter.
This script will be used by the database deploy scripts (post-restore-database hook). It can also be used locally. Type ```python pg2sphinx_trigger.py -h``` for more information.
* **Makefile** Add the new script to the move-template action. The script has to be present on all sphinx instances
* **deploy/deploy.cfg** The database host configuration for dev, int and prod
* **deploy/hooks/post-restore-code** this hook is replacing the postgres host in sphinx.conf with the corresponding host for test, integration and production

Triggering the automatic sphinx index update with database deploy can be activated when this script has been deployed to integration and prod.