Changed from operatingsystem to osfamily to match other RHEL derivitives such as Oracle Linux

This commit is contained in:
RoboGi
2016-07-19 11:25:36 -07:00
parent 71a8bed51d
commit 9dbe1ce9bb

View File

@@ -114,8 +114,8 @@ define java::oracle (
# determine package type (exe/tar/rpm), destination directory based on OS # determine package type (exe/tar/rpm), destination directory based on OS
case $::kernel { case $::kernel {
'Linux' : { 'Linux' : {
case $::operatingsystem { case $::osfamily {
'CentOS', 'RedHat' : { 'RedHat' : {
# Oracle Java 6 comes in a special rpmbin format # Oracle Java 6 comes in a special rpmbin format
if $version == '6' { if $version == '6' {
$package_type = 'rpmbin' $package_type = 'rpmbin'