name 'java'
description 'Java Platform, Standard Edition'

run_list(
  'recipe[java]'
)

#env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []

default_attributes(
  'java' => {
    'install_flavor' => 'oracle',
    'jdk_version' => '6',
    'java_home' => '/usr/local/jvm/java-6-ora',
    'oracle' => {
      'accept_oracle_download_terms' => true
    },
=begin Not effective
    'jdk' => {
      '6' => {
        'bin_cmds' => []
      }
    }
=end
  }
)

override_attributes(
  'java' => {
    'jdk' => {
      '6' => {
        # no update-alternatives
        'bin_cmds' => []
      }
    }
  }
)
