This repository was archived by the owner on Sep 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TINSTL-2595: Create SAP RFC Server-specific installation tasks (#69)
* TINSTL-2595: Created SAP RFC Server-specific installation tasks. * TINSTL-2595: Created TCOMP- and TDP-specific installation tasks * TINSTL-2595: Fixed installation tasks * TINSTL-2595: Refactored rpm/yum installation tasks without Tomcat
- Loading branch information
Showing
5 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# This file handles installation with rpm (when non-default prefix is used) | ||
# This script expects that check_status.yml was run before | ||
# So the following two variables expected to be set: | ||
# - rpm_is_installed | ||
# - rpm_install_path | ||
|
||
- name: "{{ app_name }} RPM is already installed with correct path" | ||
when: install_prefix != '/opt/talend' and rpm_is_installed.stdout != '' and rpm_install_path.stdout == install_prefix | ||
debug: | ||
msg: "{{ app_name }} RPM is already installed" | ||
|
||
- name: "Check if {{ app_name }} RPM is already installed into other path" | ||
fail: | ||
msg: "FATAL: {{ app_name }} package is already installed with a different prefix {{ rpm_install_path.stdout }} !" | ||
when: install_prefix != '/opt/talend' and rpm_is_installed.stdout != '' and rpm_install_path.stdout != install_prefix | ||
|
||
- name: "Install {{ app_name }} with rpm (non-default folder)" | ||
when: install_prefix != '/opt/talend' and (rpm_is_installed.stdout == '' or rpm_install_path.stdout != install_prefix) | ||
command: "rpm -i --prefix={{ install_prefix }} {{ rpm_repo_url }}/{{ rpm_name }}-{{ rpm_pkg_version }}.x86_64.rpm" | ||
args: | ||
warn: no | ||
environment: | ||
TALEND_INSTALL_USER: "{{ install_user }}" | ||
TALEND_INSTALL_GROUP: "{{ install_group }}" | ||
TALEND_INSTALL_SYSTEMD: "{{ '1' if app_install_systemd == 'yes' else '0' }}" | ||
JAVA_HOME: "{{ java_dir.stdout }}" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# This file handles installation with yum (to default folder /opt/talend) | ||
# | ||
- name: "Install {{ app_name }} with yum" | ||
when: rpm_is_installed.stdout == '' | ||
yum: | ||
name: "{{ rpm_name }}" | ||
state: present | ||
environment: | ||
TALEND_INSTALL_USER: "{{ install_user }}" | ||
TALEND_INSTALL_GROUP: "{{ install_group }}" | ||
TALEND_INSTALL_SYSTEMD: "{{ '1' if app_install_systemd == 'yes' else '0' }}" | ||
JAVA_HOME: "{{ java_dir.stdout }}" |
This file contains 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
This file contains 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
This file contains 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