Created
May 1, 2018 21:47
-
-
Save jwieringa/c111410d53a74b4bdeea74a837b03af2 to your computer and use it in GitHub Desktop.
Amazon linux Package Version Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JDK version: Find the pacakge version with: | |
# $ yum --showduplicates list java-1.8.0-openjdk | expand | |
# Loaded plugins: priorities, update-motd, upgrade-helper | |
# Available Packages | |
# java-1.8.0-openjdk.x86_64 1:1.8.0.71-2.b15.8.amzn1 amzn-main | |
# java-1.8.0-openjdk.x86_64 1:1.8.0.77-0.b03.9.amzn1 amzn-updates | |
# java-1.8.0-openjdk.x86_64 1:1.8.0.91-0.b14.10.amzn1 amzn-updates | |
# java-1.8.0-openjdk.x86_64 1:1.8.0.101-3.b13.24.amzn1 amzn-updates | |
# | |
# Example install: yum install <pacakge>-<version_info>.<architecture_info> | |
# $ yum install -d0 -e0 -y java-1.8.0-openjdk-1:1.8.0.91-0.b14.10.amzn1.x86_64 | |
# | |
# 1) Note that while yum docs suggest <architecture_info> is | |
# not required it seems to be necessary in this specific case. | |
# | |
# 2) While 'java-1.8.0-openjdk-1:1.8.0.91-0.b14.10.amzn1.x86_64' is how the package | |
# could be installed directly with yum it is optional and *MUST NOT* be incldued | |
# during the Chef run or the install will fail. | |
# Example: | |
# bad: 'jdk_version' = '1:1.8.0.91-0.b14.10.amzn1' | |
# good: 'jdk_version' = '1.8.0.91-0.b14.10.amzn1' | |
default['elasticsearch']['java']['jdk_package'] = 'java-1.8.0-openjdk' | |
default['elasticsearch']['java']['jdk_version'] = '1.8.0.111-1.b15.25.amzn1' | |
default['elasticsearch']['java']['arch'] = 'x86_64' | |
default['elasticsearch']['java_path'] = '/usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment