Skip to content

Commit

Permalink
Perform packages update when using the "elasticsearch::ebs" recipe
Browse files Browse the repository at this point in the history
As suggested by @Pneumatus in #88,
use `node.default.build_essential.compiletime = true` to perform
packages updates _before_ installing Fog requirements.

Credit @Pneumatus
Closes #88
  • Loading branch information
karmi committed May 9, 2013
1 parent 07adcf5 commit c74375f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions attributes/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,7 @@
data = Chef::DataBagItem.load('elasticsearch', 'data')[node.chef_environment] rescue {}

default.elasticsearch[:data][:devices] = data['devices'] || {}

# Perform package update (https://github.com/opscode-cookbooks/build-essential#usage)
#
node.default.build_essential.compiletime = true if node.recipes.any? { |r| r =~ /elasticsearch::ebs|build-essential/ }

0 comments on commit c74375f

Please sign in to comment.