Installs and configures elasticsearch