DCD-1020: Use the major java version and let per-OS roles apply the approriate naming.

This commit is contained in:
Steve Smith
2020-08-21 13:02:21 +10:00
parent a912ac5044
commit b66d08b443
4 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
---
java_version: "1.8.0"
java_major_version: "8"
postgres_version: "9.6"

View File

@@ -14,7 +14,9 @@ def test_user_created(host):
@pytest.mark.parametrize('exe', [
'/usr/bin/git',
'/usr/bin/javac'
'/usr/bin/javac',
'/usr/lib/jvm/java/bin/java',
'/usr/lib/jvm/java/jre/bin/java'
])
def test_package_exes(host, exe):
assert host.file(exe).exists

View File

@@ -3,7 +3,7 @@
- name: Install JDK if necessary on Amazon Linux
yum:
name:
- java-{{ java_version }}-openjdk-devel
- java-1.{{ java_major_version }}.0-openjdk-devel
when: atl_use_system_jdk
- name: Install other base packages on Amazon Linux