Skip to content

Instantly share code, notes, and snippets.

@charlesjohnson
Created October 24, 2012 03:09
Show Gist options
  • Save charlesjohnson/3943457 to your computer and use it in GitHub Desktop.
Save charlesjohnson/3943457 to your computer and use it in GitHub Desktop.
Ark library usage example
default['elasticsearch']['version'] = "0.19.6"
default['elasticsearch']['checksum'] = 'f0ec550fb86c4bc8f08afb15de4e197e85f9fcfd352fbb7eb49aaff98f7731dd'
default['elasticsearch']['url'] = "http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-#{node['elasticsearch']['version']}.tar.gz"
default['elasticsearch']['home_path'] = "/usr/lib"
default['elasticsearch']['home_dir'] = "#{node['elasticsearch']['home_path']}/elasticsearch"
include_recipe "ark"
ark "elasticsearch" do
url node['elasticsearch']['url']
version node['elasticsearch']['version']
prefix_root node['elasticsearch']['home_path']
home_dir node['elasticsearch']['home_dir']
checksum node['elasticsearch']['checksum']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment