tylerwalts / puppet-jdk_oracle

Puppet module to install JDK from oracle using wget
Other
15 stars 54 forks source link

Need an option to satisfy package manager dependencies #71

Closed hoshsadiq closed 5 years ago

hoshsadiq commented 7 years ago

While Java is available etc when installed through, some packages (specifically installed through dpkg, and likely rpm too) may require have their dependency populated with default-jre, default-jre-headless amongst other java packages. This means that when installed, dpkg will resolve this as OpenJDK and therefore can result in both OpenJDK and Oracle JDK.

To solve this (at least for dpkg, I'm not sure about other package managers), we can add a new option (potentially set the default to true) which would do the following:

tylerwalts commented 7 years ago

The value of using this module, and why I wrote the first version, is that it installs from the source tarball, so you can confidently use the same artifact across multiple environments & OS. I was having pain at the time by the way different OS managed the packaged install and updates, and wanted to be very specific with it.

There are other modules that install using the OS's package manager system - the one that is supported by puppetlabs does this.

Have you tried the other Java modules for this use case, or am I not understanding the issue?