oaeproject/puppet-hilary — pull request #97 by simong (2014-05-12 14:21:44+00:00)
Title: Elasticsearch 1.1.1 upgrade

This brings elasticsearch up to version 1.1.1 through the new packages elasticsearch.org exposes.

There is some new logic in https://github.com/oaeproject/oae-fabric (master) that allows you to redeploy a cluster by running `fab -u deploy cluster.search.upgrade`.

It will perform:

1. Ask for a password with which to sudo. All servers must have the same sudo passowrd
2. Perform a git pull on the puppet node to get the latest configuration
3. Bring down the entire search cluster
4. Remove the ES index data (rm -rf /data/elasticsearch)
5. Run puppet on each search node
6. Bring the search cluster back up
7. Restart an app node so the search mapping can be restored (can be skipped by setting restart_app_node to `False`)

Afterwards a `/api/search/reindexAll` needs to be triggered from the admin UI.

This needs to be deployed in conjunction with https://github.com/oaeproject/Hilary/pull/886 and is currently deployed in the staging environment