mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-1020: We need a JRE symlink too.
This commit is contained in:
@@ -35,9 +35,12 @@ atl_product_installation_current: "{{ atl_product_installation_base }}/current"
|
||||
atl_installer_temp: "{{ atl_installation_base }}/tmp"
|
||||
|
||||
# NOTE: If using the non-installer java we expect to have the full JDK
|
||||
# installed and linked to `/usr/lib/jvm/java`, usually via `alternatives`.
|
||||
# installed and linked to `/usr/lib/jvm/java` and # `/usr/lib/jvm/jre`.
|
||||
# See product_common/task/ubuntu.yml for an example of apropriate
|
||||
# linking using `alternatives`.
|
||||
atl_java_home: "{{ '/usr/lib/jvm/java' if atl_use_system_jdk else (atl_product_installation_current + '/jre') }}"
|
||||
atl_java_binary: "{{ atl_java_home }}/bin/java"
|
||||
atl_jre_home: "{{ '/usr/lib/jvm/jre' if atl_use_system_jdk else atl_java_home }}"
|
||||
atl_java_binary: "{{ atl_jre_home }}/bin/java"
|
||||
|
||||
atl_product_logs_default: &logs_default
|
||||
- path: "{{ atl_product_installation_current }}/logs/*"
|
||||
|
||||
@@ -8,13 +8,20 @@
|
||||
name:
|
||||
- openjdk-{{ java_major_version }}-jdk-headless
|
||||
|
||||
- name: Ensure common symlink exists
|
||||
- name: Ensure common JDK symlink exists
|
||||
alternatives:
|
||||
link: "/usr/lib/jvm/java"
|
||||
name: "java_sdk"
|
||||
path: "/usr/lib/jvm/java-8-openjdk-amd64"
|
||||
priority: 99
|
||||
|
||||
- name: Ensure common JRE symlink exists
|
||||
alternatives:
|
||||
link: "/usr/lib/jvm/jre"
|
||||
name: "jre"
|
||||
path: "/usr/lib/jvm/java-8-openjdk-amd64/jre"
|
||||
priority: 99
|
||||
|
||||
when: atl_use_system_jdk
|
||||
tags:
|
||||
- runtime_pkg
|
||||
|
||||
Reference in New Issue
Block a user