Skip to content

Commit

Permalink
(MODULES-7050) - Fix OracleJDK reinstalling on Puppet runs
Browse files Browse the repository at this point in the history
  • Loading branch information
eimlav committed Oct 3, 2018
1 parent 72e042a commit 415a281
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/oracle.pp
Expand Up @@ -119,7 +119,13 @@
$release_hash = $url_hash

if $release_major =~ /(\d+)u(\d+)/ {
$install_path = "${java_se}1.${1}.0_${2}"
# Required for CentOS systems where Java8 update number is >= 171 to ensure
# the package is visible to Puppet
if $facts['os']['name'] == 'CentOS' and "${2}" >= "171" {
$install_path = "${java_se}1.${1}.0_${2}-amd64"
} else {
$install_path = "${java_se}1.${1}.0_${2}"
}
} else {
$install_path = "${java_se}${release_major}${release_minor}"
}
Expand Down

0 comments on commit 415a281

Please sign in to comment.