Use the clustering logic we use with rabbit.
Set the hosts like elasticsearch expects.
A play to build the elasticsearch server.