Skip to content

Commit

Permalink
COOK-107 Use Java cookbook jdk.sh before BigTop tools (#306)
Browse files Browse the repository at this point in the history
* COOK-107 Use Java cookbook jdk.sh before BigTop tools

* Update Gemfile for newer Rubocop

* Update comments per PR feedback
  • Loading branch information
wolf31o2 committed Nov 30, 2016
1 parent 7ed1a84 commit 9ae046e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
18 changes: 13 additions & 5 deletions Gemfile
Expand Up @@ -7,39 +7,47 @@ gem 'rspec', '~> 3.0'

if RUBY_VERSION.to_f < 2.2
gem 'rack', '< 2.0'
# rubocop: disable Lint/UnneededDisable
# rubocop: disable Bundler/DuplicatedGem
if RUBY_VERSION.to_f < 2.1
gem 'fauxhai', '< 3.5'
else
gem 'fauxhai', '< 3.10'
end
# rubocop: enable Bundler/DuplicatedGem
# rubocop: enable Lint/UnneededDisable
end

if RUBY_VERSION.to_f < 2.1
gem 'buff-ignore', '< 1.2'
gem 'chef-zero', '< 4.6'
gem 'ffi-yajl', '< 2.3'
gem 'dep_selector', '< 1.0.4'
gem 'ffi-yajl', '< 2.3'
gem 'net-http-persistent', '< 3.0'
end

if RUBY_VERSION.to_f < 2.0
# rubocop: disable Lint/UnneededDisable
# rubocop: disable Bundler/DuplicatedGem
gem 'chef', '< 12.0'
gem 'foodcritic', '~> 4.0'
gem 'json', '< 2.0'
gem 'rubocop', '< 0.42'
gem 'varia_model', '< 0.5.0'
gem 'foodcritic', '~> 4.0'
else
gem 'chef', '< 12.5'
gem 'foodcritic', '~> 6.0'
gem 'rubocop'
# rubocop: enable Bundler/DuplicatedGem
# rubocop: enable Lint/UnneededDisable
end

gem 'ridley', '~> 4.2.0'
gem 'dep-selector-libgecode', '< 1.3.1'
gem 'faraday', '< 0.9.2'
gem 'rainbow', '<= 1.99.1'
gem 'dep-selector-libgecode', '< 1.3.1'
gem 'ridley', '~> 4.2.0'

group :integration do
gem 'test-kitchen'
gem 'kitchen-vagrant'
gem 'test-kitchen'
end
3 changes: 2 additions & 1 deletion templates/default/hadoop-init.erb
Expand Up @@ -36,13 +36,14 @@
. /lib/lsb/init-functions
[ -f /etc/default/hadoop ] && . /etc/default/hadoop

# Source java cookbook's profile file, if it exists
[ -f /etc/profile.d/jdk.sh ] && . /etc/profile.d/jdk.sh
# Autodetect JAVA_HOME if not defined
if [ -e /usr/libexec/bigtop-detect-javahome ]; then
. /usr/libexec/bigtop-detect-javahome
elif [ -e /usr/lib/bigtop-utils/bigtop-detect-javahome ]; then
. /usr/lib/bigtop-utils/bigtop-detect-javahome
fi
[ -f /etc/profile.d/jdk.sh ] && . /etc/profile.d/jdk.sh

RETVAL_SUCCESS=0

Expand Down

0 comments on commit 9ae046e

Please sign in to comment.