117 lines
4.7 KiB
Diff
117 lines
4.7 KiB
Diff
commit 03affb58325bf1c370ea3e0d76e291eb9485acf1
|
|
Author: Bernd Finger <bfinger@redhat.com>
|
|
Date: Mon Jul 27 20:10:03 2020 +0200
|
|
|
|
111 - Add support for IBM service and productivity tools for Power
|
|
|
|
diff --git a/README.md b/README.md
|
|
index efb60f1..37ecdbe 100644
|
|
--- a/README.md
|
|
+++ b/README.md
|
|
@@ -114,6 +114,13 @@ If you want the role to set the RHEL release to a certain fixed minor release (a
|
|
sap_hana_preconfigure_set_minor_release
|
|
```
|
|
|
|
+### URL for IBM service and productivity tools for POWER (ppc64le only)
|
|
+The following variable is set to the location of package ibm-power-repo-lastest.noarch.rpm or a package with similar contents, as defined by variable __sap_hana_preconfigure_ibm_power_repo_url in vars/RedHat_7.yml and vars/RedHat_8.yml.
|
|
+You can replace it by your own URL by setting this variable to a different URL.
|
|
+```yaml
|
|
+sap_hana_preconfigure_ibm_power_repo_url
|
|
+```
|
|
+
|
|
### How to behave if reboot is required
|
|
The following variable will ensure that the role will fail if a reboot is required, if undefined or set to `yes`, which is also the default. Rebooting the managed node can be done in the playbook which is calling this role. By setting the variable to `no`, the role will not fail if a reboot is required.
|
|
```yaml
|
|
diff --git a/defaults/main.yml b/defaults/main.yml
|
|
index 4929e66..c008330 100644
|
|
--- a/defaults/main.yml
|
|
+++ b/defaults/main.yml
|
|
@@ -73,6 +73,9 @@ sap_hana_preconfigure_update: no
|
|
|
|
sap_hana_preconfigure_kernel_parameters: "{{ __sap_hana_preconfigure_kernel_parameters_default }}"
|
|
|
|
+# sap_hana_preconfigure_ibm_power_repo_url: "{{ __sap_hana_preconfigure_ibm_power_repo_url }}"
|
|
+sap_hana_preconfigure_ibm_power_repo_url: 'http://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-3.0.0-19.noarch.rpm'
|
|
+
|
|
#### The following parameters are for PPC LE only
|
|
## add a list of interfaces where MTU size will be set to 9000
|
|
## defaults to empty
|
|
diff --git a/tasks/RedHat/installation.yml b/tasks/RedHat/installation.yml
|
|
index 502e94f..ec6e546 100644
|
|
--- a/tasks/RedHat/installation.yml
|
|
+++ b/tasks/RedHat/installation.yml
|
|
@@ -59,28 +59,37 @@
|
|
|
|
### If this task fails, you need to enable the IBM PowerTools repository
|
|
### see https://www14.software.ibm.com/support/customercare/sas/f/lopdiags/home.html for details
|
|
-##
|
|
-### # yum -y install http://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-latest.noarch.rpm
|
|
-### # /opt/ibm/lop/configure
|
|
-### # yum -y install ibm-power-managed-rhel7
|
|
-###
|
|
-- name: Install IBM Tools
|
|
+
|
|
+- name: Install the ibm-power-repo package
|
|
+ yum:
|
|
+ name: "{{ sap_hana_preconfigure_ibm_power_repo_url }}"
|
|
+ state: present
|
|
+ when: ansible_architecture == "ppc64le"
|
|
+
|
|
+- name: Accept the license for the IBM tools
|
|
+ shell: |
|
|
+ MORE=+1000 /opt/ibm/lop/configure <<-EOF
|
|
+ y
|
|
+ EOF
|
|
+ when: ansible_architecture == "ppc64le"
|
|
+
|
|
+- name: Install IBM tools
|
|
package:
|
|
state: latest
|
|
name: "{{ __sap_hana_preconfigure_required_ppc64le }}"
|
|
- when: ansible_architecture == "ppc64le"
|
|
+ when: ansible_architecture == "ppc64le"
|
|
|
|
-- name: Get status of installed IBM Tools
|
|
+- name: Get status of installed IBM tools
|
|
yum:
|
|
name: "{{ __sap_hana_preconfigure_required_ppc64le }}"
|
|
register: ibm_result
|
|
ignore_errors: True
|
|
changed_when: false
|
|
- when: ansible_architecture == "ppc64le"
|
|
+ when: ansible_architecture == "ppc64le"
|
|
|
|
- debug:
|
|
var: ibm_result.results
|
|
- when: ansible_architecture == "ppc64le"
|
|
+ when: ansible_architecture == "ppc64le"
|
|
|
|
- name: Ensure minimum packages are installed
|
|
block:
|
|
diff --git a/vars/RedHat_7.yml b/vars/RedHat_7.yml
|
|
index e843eb3..632e469 100644
|
|
--- a/vars/RedHat_7.yml
|
|
+++ b/vars/RedHat_7.yml
|
|
@@ -120,6 +120,8 @@ __sap_hana_preconfigure_packages:
|
|
# libtool-ltdl: See https://answers.sap.com/questions/476177/hana-db-installation-ended-with-exit-code-127.html
|
|
# This is required since HANA 2 SPS 03, and so we always install it.
|
|
|
|
+__sap_hana_preconfigure_ibm_power_repo_url: 'http://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-lastest.noarch.rpm'
|
|
+
|
|
# As per https://www14.software.ibm.com/support/customercare/sas/f/lopdiags/home.html :
|
|
__sap_hana_preconfigure_required_ppc64le:
|
|
- librtas
|
|
diff --git a/vars/RedHat_8.yml b/vars/RedHat_8.yml
|
|
index 0f6cdf8..8fbfa89 100644
|
|
--- a/vars/RedHat_8.yml
|
|
+++ b/vars/RedHat_8.yml
|
|
@@ -103,6 +103,8 @@ __sap_hana_preconfigure_packages:
|
|
# https://public.dhe.ibm.com/software/server/POWER/Linux/yum/OSS/RHEL/8/ppc64le/
|
|
# To install the packages, you need to create an appropriate repofile
|
|
# or clone this repository (e.g. with Satellite product)
|
|
+__sap_hana_preconfigure_ibm_power_repo_url: 'http://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-lastest.noarch.rpm'
|
|
+
|
|
__sap_hana_preconfigure_required_ppc64le:
|
|
- librtas
|
|
- src
|