OSDN Git Service

adds the drillbook::attribute_type_test recipe.
[metasearch/grid-chef-repo.git] / roles / java.rb
1 name 'java'
2 description 'Java Platform, Standard Edition'
3
4 run_list(
5   'recipe[java]'
6 )
7
8 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
9
10 default_attributes(
11   'java' => {
12     'install_flavor' => 'oracle',
13     'jdk_version' => '6',
14     'java_home' => '/usr/local/jvm/java-6-ora',
15     'oracle' => {
16       'accept_oracle_download_terms' => true
17     },
18 =begin Not effective
19     'jdk' => {
20       '6' => {
21         'bin_cmds' => []
22       }
23     }
24 =end
25   }
26 )
27
28 override_attributes(
29   'java' => {
30     'jdk' => {
31       '6' => {
32         # no update-alternatives
33         'bin_cmds' => []
34       }
35     }
36   }
37 )