for 'Amazon Linux AMI' supports

[Amazon Linux AMI](https://aws.amazon.com/cn/amazon-linux-ami/2016.09-release-notes/) is another RedHat-like os image, openjdk-7 was shipped in that image but we  want more choices or jdk 8. i'd been tested ok for oracle jdk installation on a 't2.micro' instance.
This commit is contained in:
hedzr
2016-12-15 11:08:55 +08:00
committed by GitHub
parent 0b47353d81
commit c2420550c6

View File

@@ -145,7 +145,7 @@ define java::oracle (
case $::kernel { case $::kernel {
'Linux' : { 'Linux' : {
case $::osfamily { case $::osfamily {
'RedHat' : { 'RedHat', 'Amazon' : {
# 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'