diff --git a/manifests/oracle.pp b/manifests/oracle.pp index d5025ac..fd0bb67 100644 --- a/manifests/oracle.pp +++ b/manifests/oracle.pp @@ -146,8 +146,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}"