# download the fileremote_file "Chef::Config[:file_cache_path]/jdk-7.2.tar.gz" dochecksum '89ba5fde0c596db388c3bbd265b63007a9cc3df3a8e6d79a46780c1a39408cb5'end# unpack itbash "unpack java" docode <<-EOStar xzf #{Chef::Config[:file_cache_path]/jdk-7.2.tar.gz} --strip-components=1 -C /usr/local/jdk-7.2EOSend# indicate that this is the latest jdk# yeah, I install multiple jdk's on a single machine for some apps which require the i386 archlink "/usr/local/jvm" doto "/usr/local/jdk-7.2"end# put the java command in the PATHlink "/usr/local/jvm/bin/java" doto "/usr/local/bin/java"endwith this
ark 'jdk' do url 'http://download.oracle.com/jdk-7u2-linux-x64.tar.gz' version '7.2' checksum '89ba5fde0c596db388c3bbd265b63007a9cc3df3a8e6d79a46780c1a39408cb5' has_binaries [ 'bin/java', 'bin/javac', 'bin/javaws' ]endyou can find it on github.com athttps://github.com/bryanwb/chef-ark
Archive powered by MHonArc 2.6.16.