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

Select Status


java_libs (3) Versions 0.10.0

Provides Java-related LWRPs and HWRPs

cookbook 'java_libs', '~> 0.10.0', :supermarket
cookbook 'java_libs', '~> 0.10.0'
knife supermarket install java_libs
knife supermarket download java_libs
Quality 33%


Build Status


This cookbook contains LWRPs and HWRPs for handling optional common configuration of the JVM. The LWRPs and/or libraries in this cookbook should be referenced from recipes that run after the installation and configuration of Java via the cookbook at


java_certificate LWRP

This cookbook contains the java_certificate LWRP which simplifies adding certificates to a java keystore. It can also populate the keystore with a certificate retrieved from a given SSL end-point. It defaults to the default keystore <java_home>/jre/lib/security/cacerts with the default password if a specific keystore is not provided.


  • :install: installs a certificate.
  • :remove: removes a certificate.

Attribute Parameters

  • cert_alias: The alias of the certificate in the keystore. This defaults to the name of the resource.

Optional parameters:

  • java_home: the java home directory. Defaults to node['java']['java_home'].
  • keystore_path: the keystore path. Defaults to node['java']['java_home']/jre/lib/security/cacerts.
  • keystore_passwd: the keystore password. Defaults to 'changeit' as specified by the Java Documentation.
  • server_name: server name to use for the SNI header (openssl s_client parameter -servername).

Only one of the following

  • cert_data: the certificate data to install
  • cert_file: path to a certificate file to install
  • ssl_endpoint: an SSL end-point from which to download the certificate


Simple example:

java_certificate 'Install LDAP server certificate to Java CA keystore for Jenkins' do
  cert_alias node['jenkins']['ldap']['url'][/\/\/(.*)/, 1]
  ssl_endpoint node['jenkins']['ldap']['url']
  action :install
  notifies :restart, 'runit_service[jenkins]', :delayed

SNI (Server Name Indication) support example:

java_certificate 'Install Self Signed server certificate with SNI Support' do
  cert_alias ''
  ssl_endpoint ''
  server_name ''
  action :install

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

java-libraries Releases


  • Renamed resources


  • Added SNI Support


  • Rename and cleanup, backwards compatible with upstream / original cookbook at version 0.2.0 (last published version on supermarket)


  • (BUG) #2 - Fix java_certificate LWRP


  • Initial release

Collaborator Number Metric

0.10.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.10.0 passed this metric

Foodcritic Metric

0.10.0 failed this metric

FC066: Ensure chef_version is set in metadata: java_libs/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: java_libs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: java_libs/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

0.10.0 passed this metric

Testing File Metric

0.10.0 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, and your repo must contain a file

Version Tag Metric

0.10.0 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, and your repo must include a tag that matches this cookbook version number