name 'hadoop-build'
description 'Hadoop Build Environment.'

run_list(
  'role[apt]',
  'recipe[hadoop::build]',
  'role[java]',  # default: Oracle JDK installation.
  'role[maven]',
  #'role[protobuf-compiler]',  # default: package installation.
  'recipe[protobuf-compiler]',
)

#env_run_lists()

default_attributes(
  'hadoop' => {
    'version' => '2.1.0-beta'
  },
  'java' => {
    'jdk_version' => '6'
  },
  'maven' => {
    'install_flavor' => 'apache',  # tarball installation.
    'version' => '3.0.5'
  },
  'protobuf-compiler' => {
    'install_flavor' => 'google',  # source build installation.
    'version' => '2.5.0'
  },
)

#override_attributes()
