Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

SimpleFinance/java

Repository files navigation

java

cookbook_file 'java_tar_gz' do
  source 'java.tar.gz'
  path '/tmp/java.tar.gz'
  owner 'root'
  group 'root'
  mode 00644
end

cookbook_file 'jce_zip' do
  source 'jce.zip'
  path '/tmp/jce.zip'
  owner 'root'
  group 'root'
  mode 00644
end

jdk_install_flavor = 'oracle'
jdk_version = 7
java_home = "/usr/lib/jvm/java-#{ jdk_version }-#{ jdk_install_flavor }"

java 'oracle_jdk' do
  install_type :tar
  install_options(
    source: '/tmp/java.tar.gz',
    jce_source: '/tmp/jce.zip',
    destination: java_home,
    strip_leading: true,
    install_jce: true
  )
end
java 'openjdk' do
  install_type :package
  install_options(
    provider: :openjdk,
    version: 7,
    update: 25,
    release: '2.3.10-1'
  )
end

About

Chef Resource Provider for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages