Skip to content

Instantly share code, notes, and snippets.

@felipellrocha
Created January 17, 2014 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipellrocha/1b45e7331a063b498aab to your computer and use it in GitHub Desktop.
Save felipellrocha/1b45e7331a063b498aab to your computer and use it in GitHub Desktop.
es-requirements:
pkg.installed:
- names:
- libc6
- openjdk-7-jre-headless
- curl
- unzip
es-pkg:
pkg.installed:
- sources:
{% if grains['id'].startswith('pixie') %}
- elasticsearch: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.0.Beta2.deb
{% else %}
- elasticsearch: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.deb
{% endif %}
- require:
- pkg: es-requirements
es-limit:
file.managed:
- name: /etc/security/limits.conf
- user: {{ pillar['main_user'] }}
- source: salt://elasticsearch/limits.conf
es-settings:
file.managed:
- name: /etc/elasticsearch/elasticsearch.yml
- user: {{ pillar['main_user'] }}
- template: jinja
{% if grains['id'].startswith('pixie') %}
- source: salt://elasticsearch/percolator.yml
{% else %}
- source: salt://elasticsearch/search.yml
{% endif %}
elasticsearch:
service:
- running
- require:
- pkg: es-pkg
- watch:
- file: /etc/elasticsearch/elasticsearch.yml
- file: /etc/security/limits.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment