Merge pull request #349 from fraenki/creates_path

MODULES-8698: Fix $install_path on CentOS with tar.gz package type
This commit is contained in:
david22swan
2019-03-06 15:25:23 +00:00
committed by GitHub

View File

@@ -154,8 +154,9 @@ define java::oracle (
if $release_major =~ /(\d+)u(\d+)/ {
# Required for CentOS systems where Java8 update number is >= 171 to ensure
# the package is visible to Puppet
if $facts['os']['family'] == 'RedHat' and $2 >= '171' {
# the package is visible to Puppet. This is only true for installations that
# don't use the tar.gz package type.
if $facts['os']['family'] == 'RedHat' and $2 >= '171' and $package_type != 'tar.gz' {
$install_path = "${java_se}1.${1}.0_${2}-amd64"
} else {
$install_path = "${java_se}1.${1}.0_${2}"