Skip to content

Commit

Permalink
Fixed incorrect "ark" parameters for the installation directory
Browse files Browse the repository at this point in the history
If you set a custom installation directory using the :dir attribute, the cookbook still installs ElasticSearch in /usr/local/. This is because the call to ark that downloads and installs ElasticSearch doesn't include the necessary parameters to actually place the unpacked files in a custom location.

This patch updates the default cookbook to properly configure ark when using a custom directory.

Closes #80
  • Loading branch information
organicveggie authored and karmi committed Jun 10, 2013
1 parent 306e0c7 commit cb22871
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/default.rb
Expand Up @@ -65,13 +65,18 @@

# Download, extract, symlink the elasticsearch libraries and binaries
#
ark_prefix_root = node.elasticsearch[:dir] || node.ark[:prefix_root]
ark_prefix_home = node.elasticsearch[:dir] || node.ark[:prefix_home]

ark "elasticsearch" do
url node.elasticsearch[:download_url]
owner node.elasticsearch[:user]
group node.elasticsearch[:user]
version node.elasticsearch[:version]
has_binaries ['bin/elasticsearch', 'bin/plugin']
checksum node.elasticsearch[:checksum]
prefix_root ark_prefix_root
prefix_home ark_prefix_home

notifies :start, 'service[elasticsearch]'
notifies :restart, 'service[elasticsearch]'
Expand Down

0 comments on commit cb22871

Please sign in to comment.