The elasticsearch configuration

The most important part is the /srv/salt/elasticsearch/init.sls file:

# Include the ``java`` sls in order to use oracle_java_pkginclude:-java# Note: this is only valid for the Debian repo / package# You should filter on grain['os'] conditional for yum-based distroselasticsearch_repo:pkgrepo.managed:-humanname:Elasticsearch Official Debian Repository-name:deb http://packages.elasticsearch.org/elasticsearch/1.2/debian stable main-dist:stable-key_url:salt://elasticsearch/GPG-KEY-elasticsearch-file:/etc/apt/sources.list.d/elasticsearch.listelasticsearch:pkg:-installed-require:-pkg:oracle_java_pkg-pkgrepo:elasticsearch_reposervice:-running-enable:True-require:-pkg:elasticsearch-file:/etc/elasticsearch/elasticsearch.yml/etc/elasticsearch/elasticsearch.yml:file:-managed-user:root-group:root-mode:644-template:jinja-source:salt://elasticsearch/elasticsearch.yml

Download the elasticsearch repository key and store it as
/srv/salt/elasticsearch/GPG-KEY-elasticsearch: