upgrade java version installed
I am currently using the official puppetlabs java module to manage the java packages on a set of centOS systems. The current java package installed is: "java-1.7.0-openjdk" and I am planning to upgrade to "java-1.8.0-openjdk".
When the new version of the package is defined in the java module, puppet goes and installs it successfully, however it lefts behind the previous java version also installed... which causes issues with application dependencies.
Is this as expected? if so, what is the best way to ensure that only the java package version defined while invoking the class remains in the system and others are fully removed?
Any help would be much appreciated.