Skip to content

Instantly share code, notes, and snippets.

View eknuth's full-sized avatar

Edwin Knuth eknuth

  • Overjet
  • Portland, Oregon
View GitHub Profile
@eknuth
eknuth / gist:9123743
Created February 20, 2014 21:37
installing elasticsearch with chef
# chef stuff to install elastic search
# based on https://www.digitalocean.com/community/articles/how-to-install-elasticsearch-on-an-ubuntu-vps
# install oracle java (with help from http://jamie.mccrindle.org/2013/07/installing-oracle-java-7-using-chef.html)
execute "add oracle java repo" do
command '/usr/bin/add-apt-repository -y ppa:webupd8team/java && /usr/bin/apt-get update'
not_if "test -x /etc/apt/sources.list.d/webupd8team-java-precise.list"
end
execute "accept-license" do