Skip to content

Instantly share code, notes, and snippets.

@gordonm
Created June 8, 2012 16:31
Show Gist options
  • Save gordonm/2896685 to your computer and use it in GitHub Desktop.
Save gordonm/2896685 to your computer and use it in GitHub Desktop.
elasticsearch
openjdk-6-jre:
pkg:
- installed
/tmp/elasticsearch.tar.gz:
file:
- managed
- source: https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.2.tar.gz
/tmp/servicewrapper.tar.gz:
file:
- managed
- source: http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master
/tmp/install_elasticsearch.sh:
file:
- managed
- source: salt://searchserver/elasticsearch.sh
- mode: 644
install_elasticsearch:
cmd.run:
- require:
- file: /tmp/install_elasticsearch.sh
- unless:
- file: /usr/local/share/elasticsearch/bin/service/elasticsearch.conf
elasticsearch:
service:
- running
- require:
- cmd: install_elasticsearch
- pkg: openjdk-6-jre
- file: /usr/local/share/elasticsearch/bin/service/elasticsearch.conf
- file: /usr/local/share/elasticsearch/config/elasticsearch.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment