Skip to content

Commit c10e820

Browse files
Update default.rb
A few changes to make it work with Ubuntu 16.x as the Chef-client and work with Chef version 13.
1 parent 360fa93 commit c10e820

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

attributes/default.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919

2020
# default jdk attributes
2121
default['java']['install_flavor'] = "openjdk"
22-
default['java']['jdk_version'] = '6'
23-
default['java']['arch'] = kernel['machine'] =~ /x86_64/ ? "x86_64" : "i586"
22+
default['java']['jdk_version'] = '8'
23+
#default['java']['arch'] = kernel['machine'] =~ /x86_64/ ? "x86_64" : "i586"
24+
default['java']['arch'] = "x86_64" # For Ubuntu 16.04, the above line needed to be commented out.
2425

25-
case platform
26+
case node['platform'] # Needs to be compatible with Chef version 13.
2627
when "centos","redhat","fedora"
2728
default['java']['java_home'] = "/usr/lib/jvm/java"
2829
when "freebsd"

0 commit comments

Comments
 (0)