Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

java_se (57) Versions 9.0.4

Installs Oracle's Java SE JDK

Berkshelf
Policyfile
Knife
cookbook 'java_se', '= 9.0.4'
cookbook 'java_se', '= 9.0.4', :supermarket
knife cookbook site install java_se
knife cookbook site download java_se
README
Dependencies
Changelog
Quality 89%

Java SE Cookbook

Cookbook Version linux osx win

Installs and configures Oracle's Java SE JDK 9.

See Critical Patch Updates for next scheduled JDK release.

Requirements

  • Chef 11+

Platforms

  • CentOS, Red Hat, Fedora
  • Debian, Ubuntu
  • Mac OS X
  • Windows

Usage

By adding java_se to a run list or cookbook you are accepting the Oracle Binary Code License Agreement for Java SE.

Older versions of Java JDK are no longer publicly available after a patch update. So it is recommended that you download JDK from alternative location, or constrain java_se cookbook version. Note that the latter solution could result in a failed converge when a new patch update is released and a matching version of java_se cookbook is not yet available. A release of java_se cookbook usually follows within a day after a patch update.

Windows JAVA_HOME and PATH environment variables are not available during initial chef-client run. Attribute node['java_se']['win_javalink'] provides a symbolic link to installed Java JDK bin directory and is available during initial chef-client run.

Examples

Download JDK from alternative location

This will download the JDK that best matches platform criteria. Note that JDK file names must be the same as that found on Oracle's download page.

A script to download JDKs from Oracle and upload them to Amazon S3 is available here.

override_attributes(
  "java_se": {
    "uri": "https://s3.amazonaws.com/mybucket/java"
  }
)

Constrain java_se cookbook version

Constrain version in cookbook to latest Java SE JDK 9.

depends 'java_se', '~> 9.0'

Constrain version in environment to latest Java SE JDK 9.

cookbook 'java_se', '~> 9.0'

Attributes

  • node['java_se']['uri'] - The URI to the Java SE JDKs. If a directory is provided, it will then automatically assign a file name that best matches platform criteria. The JDK file names must be the same as that found on Oracle's download page. Leave nil to download directly from Oracle. Default nil.
  • node['java_se']['skip'] - Skips installing Java SE. Default false.
  • node['java_se']['java_home'] - Alternative java_home location. Leave nil to use default location. For Linux and Windows only. Default nil.

Linux Only

  • node['java_se']['set_default'] - Indicates whether or not you want the JDK installed to be default on the system. Default true.
  • node['java_se']['owner'] - The owner of extracted directory. Default root.
  • node['java_se']['group'] - The group of extracted directory. Default root.
  • node['java_se']['alternatives_priority'] - A priority of the alternatives. Default 1061.
  • node['java_se']['set_etc_environment'] - Optionally sets JAVA_HOME in /etc/environment for. Default false.
  • node['java_se']['reset_alternatives'] - Whether alternatives is reset. Default true.
  • node['java_se']['use_alt_suffix'] whether '_alt' suffix is used for none default java install. Default false.
  • node['java_se']['bin_cmds'] - Array of binary commands to symlink /usr/bin to, and set alternative on. Examples are mvn, java, javac, etc. These cmds must be in the bin subdirectory of the extracted folder. Will be ignored if set_default is not true.

Windows Only

  • node['java_se']['win_addlocal'] - JDK features to install. Default ToolsFeature,SourceFeature,PublicjreFeature.
  • node['java_se']['win_javalink'] - Symbolic link to Java JDK bin directory. Since Windows PATH and JAVA_HOME are not available during chef-client run, this provides a way for cookbooks to access the latest installed version. Default %SYSTEMDRIVE%\java\bin.
  • node['java_se']['win_jre_home'] - Location to install public JRE. Leave nil to use default location. Default nil.

Bind (Do not override)

  • node['java_se']['release'] - The JDK release version.
  • node['java_se']['build'] - The build number.
  • node['java_se']['sha256'][type] - The checksum to validate the installer with. Where type is one of 'dmg', 'exe', or 'tar'.

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.

Changelog

9.0.4 2018-01-17

  • Update 9.0.4

9.0.1 2017-10-23

  • Initial release of JDK 9

Collaborator Number Metric
            

9.0.4 passed this metric

Contributing File Metric
            

9.0.4 passed this metric

Foodcritic Metric
            

9.0.4 passed this metric

License Metric
            

9.0.4 passed this metric

No Binaries Metric
            

9.0.4 passed this metric

Publish Metric
            

9.0.4 passed this metric

Supported Platforms Metric
            

9.0.4 passed this metric

Testing File Metric
            

9.0.4 passed this metric

Version Tag Metric
            

9.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number