Giter Club home page Giter Club logo

chef-java-management's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chef-java-management's Issues

Truststore installation fails if a JRE is installed instead of a JDK.

Recipe truststore fails when a JRE is installed. Chef client ends with the following error:

==> default: [2014-10-10T23:07:49+00:00] ERROR: file[/usr/java/default/jre/lib/security/truststore-my_root.pem] (java-management::truststore line 32) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /usr/java/default/jre/lib/security does not exist.

This is due to the following assignment in the recipe:

certificate_file = "#{node['java']['java_home']}/jre/lib/security/truststore-#{certalias}.pem"

certificate_file is a valid path when a JDK is installed. In case of a JRE installation, this path should be:

certificate_file = "#{node['java']['java_home']}/lib/security/truststore-#{certalias}.pem"

The default value of the keystore attribute in the truststore LWRP provider should also be set accordingly.

A possible fix could be to allow setting this path as a cookbook attribute.

Thank you for your support.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.