Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pin to a specific oracle jdk version #184
As a reminder, the oracle_rpm recipe is aimed to install and configure Oracle jdk or jre package provided by a custom YUM repository. Oracle does not host such repository. It is up to you to initialize this YUM repo with the rpm downloaded from Oracle web site.
In the current version of the recipe, it is not foreseen to pin a specific version of the jre/jdk. It basically calls 'yum upgrade jre' or 'yum upgrade jdk', based on node['java']['oracle_rpm']['type']. Thus, it will install or upgrade to the up-to-date package available in the custom repository. It is assumed that this repository does not mix packages from different java major versions (1.6, 1.7), so that it is not necessary to specify a version in the recipe.
If you really need to manage precisely the version, please, feel free to submit a ticket.
Hope it clarifies.
Le 20 juin 2014 11:06, "Garg, Saman" Saman_Garg@intuit.com a écrit :
We downloaded the java cookbook from community and we tried to see if we could start using it without re-inventing the wheel. But we ran into some issues which we thought we should share with you and get feedback.
Requirement: To be able to pin jdk package install to a specific version of Oracle jdk.
Am I missing something here OR this is something that is already in your enhancement pipeline?
======== FROM: recipes/oracle_rpm.rb ===============
slave_cmds = case node['java']['oracle_rpm']['type']
package node['java']['oracle_rpm']['type'] do