# Apt #########################################################################

include_recipe "apt"

# Java ########################################################################

node.override['java']['install_flavor'] = 'oracle'
node.override['java']['oracle']['accept_oracle_download_terms'] = true
node.override['java']['jdk_version'] = '6'
node.override['java']['url'] = 'jdk-6u45-linux-x64.bin'
node.override['java']['java_home'] = '/usr/lib/jvm/jdk1.6.0_45'

include_recipe "java"

# Hadoop ######################################################################

node.override['single_node_hadoop_claster']['java']['java_home'] = "/usr/lib/jvm/jdk1.6.0_45"
node.override['single_node_hadoop_claster']['user'] = 'vagrant'
node.override['single_node_hadoop_claster']['group'] = 'hadoop'

include_recipe "single_node_hadoop_claster"

# jRuby via rbenv #############################################################

node.override['rbenv']['group_users'] = ['vagrant']

include_recipe "rbenv::default"
include_recipe "rbenv::ruby_build"

rbenv_ruby "jruby-1.7.3"

rbenv_gem "bundler" do
  ruby_version "jruby-1.7.3"
end

# Apt #########################################################################

include_recipe "apt"

# Java ########################################################################

node.override['java']['install_flavor'] = 'oracle'
node.override['java']['oracle']['accept_oracle_download_terms'] = true
node.override['java']['jdk_version'] = '6'
node.override['java']['url'] = 'jdk-6u45-linux-x64.bin'
node.override['java']['java_home'] = '/usr/lib/jvm/jdk1.6.0_45'

include_recipe "java"

# Hadoop ######################################################################

node.override['single_node_hadoop_claster']['java']['java_home'] = "/usr/lib/jvm/jdk1.6.0_45"
node.override['single_node_hadoop_claster']["user"]["name"] = 'vagrant'

include_recipe "single_node_hadoop_claster"

# jRuby via rbenv #############################################################

node.override['rbenv']['group_users'] = ['vagrant']

include_recipe "rbenv::default"
include_recipe "rbenv::ruby_build"

rbenv_ruby "jruby-1.7.3"

rbenv_gem "bundler" do
  ruby_version "jruby-1.7.3"
end

Update attributes according to single_node_hadoop_claster requirements.
Update attributes according to single_node_hadoop_claster requirements.
