I've been using configuration management tools (more recently Saltstack) to automatically deploy ES clusters.
I used to have an index mapping template in the config directory and when the cluster started and a document was indexed the template was picked up.
Starting with ES 2.0 file based templates are not supported anymore so I need to wait for the cluster to come up and then upload a template.
Is there a recommended way to find out when the cluster is ready to receive the template?
How do I keep the cluster from indexing documents until all changes have been applied?