Added .erb template for the elasticsearch.yml config file.
Commented out settings that disabled autodiscovery.
Rearranged pseudocode.