Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[#77] Added `build-essential` into Vagrantfile and recipes/ebs

NOTE: Even though the "build-essential" cookbook is included in the node `run_list`,
`build-essential` is not installed and `make` is not available before the Chef run,
making the installation of the Fog gem fail.

That's why we need to include the build-essential/make/gcc/etc packages also in the
`value_for_platform_family` in recipes/ebs.
  • Loading branch information...
commit 15c4e1329be80763f21b2015416c1d4067dc1b43 1 parent adc3985
@karmi karmi authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 Vagrantfile
  2. +2 −2 recipes/ebs.rb
View
4 Vagrantfile
@@ -29,7 +29,7 @@ require 'berkshelf/vagrant'
distributions = {
:precise64 => {
:url => 'http://files.vagrantup.com/precise64.box',
- :run_list => %w| apt vim java monit elasticsearch elasticsearch::plugins elasticsearch::proxy elasticsearch::aws elasticsearch::data elasticsearch::monit elasticsearch::test |,
+ :run_list => %w| apt build-essential vim java monit elasticsearch elasticsearch::plugins elasticsearch::proxy elasticsearch::aws elasticsearch::data elasticsearch::monit elasticsearch::test |,
:ip => '33.33.33.10',
:primary => true,
:node => {
@@ -78,7 +78,7 @@ distributions = {
:centos6 => {
# Note: Monit cookbook broken on CentOS
:url => 'https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-centos-6.3.box',
- :run_list => %w| yum::epel vim java elasticsearch elasticsearch::proxy elasticsearch::data elasticsearch::test |,
+ :run_list => %w| yum::epel build-essential vim java elasticsearch elasticsearch::proxy elasticsearch::data elasticsearch::test |,
:ip => '33.33.33.12',
:primary => false,
:node => {
View
4 recipes/ebs.rb
@@ -3,8 +3,8 @@
# Install the Fog gem dependencies
#
value_for_platform_family(
- [:ubuntu, :debian] => %w| libxslt1-dev libxml2-dev |,
- [:rhel, :centos, :suse, :amazon] => %w| libxslt-devel libxml2-devel |
+ [:ubuntu, :debian] => %w| build-essential libxslt1-dev libxml2-dev |,
+ [:rhel, :centos, :suse, :amazon] => %w| gcc gcc-c++ make libxslt-devel libxml2-devel |
).each do |pkg|
package(pkg) { action :nothing }.run_action(:upgrade)
end
Please sign in to comment.
Something went wrong with that request. Please try again.