Compare commits
7 Commits
imports/c8
...
c8
Author | SHA1 | Date | |
---|---|---|---|
e42e9b65e0 | |||
|
0a5c177313 | ||
|
8f3a135998 | ||
|
ab2ac1a567 | ||
|
a23c0909ca | ||
|
b74d0c40a7 | ||
|
1b097d4e50 |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
SOURCES/sap-hana-preconfigure.tar.gz
|
||||
SOURCES/sap-netweaver-preconfigure.tar.gz
|
||||
SOURCES/sap-preconfigure.tar.gz
|
||||
SOURCES/auto-maintenance-e2a233f5a0cb68363798bf014b16552cca681bd0.tar.gz
|
||||
SOURCES/redhat.sap_install-1.3.5.tar.gz
|
||||
|
@ -1,3 +1,2 @@
|
||||
2a6d0af7d9ee7fdd8501e52476f9b42c54e3a50c SOURCES/sap-hana-preconfigure.tar.gz
|
||||
65265d647f2e65227aa54e5173ef8c29b11d6764 SOURCES/sap-netweaver-preconfigure.tar.gz
|
||||
2b1fd31c00102824db00626a95f3f64dc5813983 SOURCES/sap-preconfigure.tar.gz
|
||||
584f8d1681adf13cb7af256a7b38d94ca80dcab2 SOURCES/auto-maintenance-e2a233f5a0cb68363798bf014b16552cca681bd0.tar.gz
|
||||
835376d0e4799989e9d4deb21ac7e1d335c941de SOURCES/redhat.sap_install-1.3.5.tar.gz
|
||||
|
1690
SOURCES/redhat.sap_install-1.3.4-add_tests.patch
Normal file
1690
SOURCES/redhat.sap_install-1.3.4-add_tests.patch
Normal file
File diff suppressed because it is too large
Load Diff
128
SOURCES/redhat.sap_install-1.3.4-add_tools.patch
Normal file
128
SOURCES/redhat.sap_install-1.3.4-add_tools.patch
Normal file
@ -0,0 +1,128 @@
|
||||
commit 83db825f7f30445408efa6061631d8dd0590e891
|
||||
Author: Than Ngo <than@redhat.com>
|
||||
Date: Thu Jan 25 16:17:21 2024 +0100
|
||||
|
||||
add missing tools folders
|
||||
|
||||
Signed-off-by: Than Ngo <than@redhat.com>
|
||||
|
||||
diff --git a/roles/sap_general_preconfigure/tools/beautify-assert-output.sh b/roles/sap_general_preconfigure/tools/beautify-assert-output.sh
|
||||
new file mode 100755
|
||||
index 0000000..f48087c
|
||||
--- /dev/null
|
||||
+++ b/roles/sap_general_preconfigure/tools/beautify-assert-output.sh
|
||||
@@ -0,0 +1,34 @@
|
||||
+#!/bin/bash
|
||||
+
|
||||
+# default font color: Light Cyan, which should be readable on both bright and dark background
|
||||
+__FONT_COLOR=36m
|
||||
+
|
||||
+if [[ ${1}. == "font_light_gray". ]]; then
|
||||
+ __FONT_COLOR=37m
|
||||
+elif [[ ${1}. == "font_no_color". ]]; then
|
||||
+ __FONT_COLOR=30m
|
||||
+fi
|
||||
+
|
||||
+if [[ ${2}. == "reset." ]]; then
|
||||
+ awk 'BEGIN{printf ("\033['${__FONT_COLOR}'Resetting font color\n")}'
|
||||
+ exit
|
||||
+fi
|
||||
+
|
||||
+awk '{sub (" \"msg\": ", "")}
|
||||
+ /TASK/{task_line=$0}
|
||||
+ /fatal:/{fatal_line=$0; nfatal[host]++}
|
||||
+ /...ignoring/{nfatal[host]--; if (nfatal[host]<0) nfatal[host]=0}
|
||||
+ /^[a-z]/&&/: \[/{gsub ("\\[", ""); gsub ("]", ""); gsub (":", ""); host=$2}
|
||||
+ /SAP note/{print "\033['${__FONT_COLOR}'[" host"] "$0}
|
||||
+ /FAIL:/{nfail[host]++; print "\033[31m[" host"] "$0}
|
||||
+ /WARN:/{nwarn[host]++; print "\033[33m[" host"] "$0}
|
||||
+ /PASS:/{npass[host]++; print "\033[32m[" host"] "$0}
|
||||
+ /INFO:/{print "\033[34m[" host"] "$0}
|
||||
+ /changed/&&/unreachable/{print "\033['${__FONT_COLOR}'[" host"] "$0}
|
||||
+ END{print ("---"); for (var in npass) {printf ("[%s] ", var); if (nfatal[var]>0) {
|
||||
+ printf ("\033[31mFATAL ERROR!!! Playbook might have been aborted!!!\033['${__FONT_COLOR}' Last TASK and fatal output:\n"); print task_line, fatal_line
|
||||
+ exit 199
|
||||
+ }
|
||||
+ else printf ("\033[31mFAIL: %d \033[33mWARN: %d \033[32mPASS: %d\033['${__FONT_COLOR}'\n", nfail[var], nwarn[var], npass[var])}
|
||||
+ if (nfail[var] != 0) exit (nfail[var])
|
||||
+ }'
|
||||
diff --git a/roles/sap_hana_preconfigure/tools/beautify-assert-output.sh b/roles/sap_hana_preconfigure/tools/beautify-assert-output.sh
|
||||
new file mode 100755
|
||||
index 0000000..f48087c
|
||||
--- /dev/null
|
||||
+++ b/roles/sap_hana_preconfigure/tools/beautify-assert-output.sh
|
||||
@@ -0,0 +1,34 @@
|
||||
+#!/bin/bash
|
||||
+
|
||||
+# default font color: Light Cyan, which should be readable on both bright and dark background
|
||||
+__FONT_COLOR=36m
|
||||
+
|
||||
+if [[ ${1}. == "font_light_gray". ]]; then
|
||||
+ __FONT_COLOR=37m
|
||||
+elif [[ ${1}. == "font_no_color". ]]; then
|
||||
+ __FONT_COLOR=30m
|
||||
+fi
|
||||
+
|
||||
+if [[ ${2}. == "reset." ]]; then
|
||||
+ awk 'BEGIN{printf ("\033['${__FONT_COLOR}'Resetting font color\n")}'
|
||||
+ exit
|
||||
+fi
|
||||
+
|
||||
+awk '{sub (" \"msg\": ", "")}
|
||||
+ /TASK/{task_line=$0}
|
||||
+ /fatal:/{fatal_line=$0; nfatal[host]++}
|
||||
+ /...ignoring/{nfatal[host]--; if (nfatal[host]<0) nfatal[host]=0}
|
||||
+ /^[a-z]/&&/: \[/{gsub ("\\[", ""); gsub ("]", ""); gsub (":", ""); host=$2}
|
||||
+ /SAP note/{print "\033['${__FONT_COLOR}'[" host"] "$0}
|
||||
+ /FAIL:/{nfail[host]++; print "\033[31m[" host"] "$0}
|
||||
+ /WARN:/{nwarn[host]++; print "\033[33m[" host"] "$0}
|
||||
+ /PASS:/{npass[host]++; print "\033[32m[" host"] "$0}
|
||||
+ /INFO:/{print "\033[34m[" host"] "$0}
|
||||
+ /changed/&&/unreachable/{print "\033['${__FONT_COLOR}'[" host"] "$0}
|
||||
+ END{print ("---"); for (var in npass) {printf ("[%s] ", var); if (nfatal[var]>0) {
|
||||
+ printf ("\033[31mFATAL ERROR!!! Playbook might have been aborted!!!\033['${__FONT_COLOR}' Last TASK and fatal output:\n"); print task_line, fatal_line
|
||||
+ exit 199
|
||||
+ }
|
||||
+ else printf ("\033[31mFAIL: %d \033[33mWARN: %d \033[32mPASS: %d\033['${__FONT_COLOR}'\n", nfail[var], nwarn[var], npass[var])}
|
||||
+ if (nfail[var] != 0) exit (nfail[var])
|
||||
+ }'
|
||||
diff --git a/roles/sap_netweaver_preconfigure/tools/beautify-assert-output.sh b/roles/sap_netweaver_preconfigure/tools/beautify-assert-output.sh
|
||||
new file mode 100755
|
||||
index 0000000..f48087c
|
||||
--- /dev/null
|
||||
+++ b/roles/sap_netweaver_preconfigure/tools/beautify-assert-output.sh
|
||||
@@ -0,0 +1,34 @@
|
||||
+#!/bin/bash
|
||||
+
|
||||
+# default font color: Light Cyan, which should be readable on both bright and dark background
|
||||
+__FONT_COLOR=36m
|
||||
+
|
||||
+if [[ ${1}. == "font_light_gray". ]]; then
|
||||
+ __FONT_COLOR=37m
|
||||
+elif [[ ${1}. == "font_no_color". ]]; then
|
||||
+ __FONT_COLOR=30m
|
||||
+fi
|
||||
+
|
||||
+if [[ ${2}. == "reset." ]]; then
|
||||
+ awk 'BEGIN{printf ("\033['${__FONT_COLOR}'Resetting font color\n")}'
|
||||
+ exit
|
||||
+fi
|
||||
+
|
||||
+awk '{sub (" \"msg\": ", "")}
|
||||
+ /TASK/{task_line=$0}
|
||||
+ /fatal:/{fatal_line=$0; nfatal[host]++}
|
||||
+ /...ignoring/{nfatal[host]--; if (nfatal[host]<0) nfatal[host]=0}
|
||||
+ /^[a-z]/&&/: \[/{gsub ("\\[", ""); gsub ("]", ""); gsub (":", ""); host=$2}
|
||||
+ /SAP note/{print "\033['${__FONT_COLOR}'[" host"] "$0}
|
||||
+ /FAIL:/{nfail[host]++; print "\033[31m[" host"] "$0}
|
||||
+ /WARN:/{nwarn[host]++; print "\033[33m[" host"] "$0}
|
||||
+ /PASS:/{npass[host]++; print "\033[32m[" host"] "$0}
|
||||
+ /INFO:/{print "\033[34m[" host"] "$0}
|
||||
+ /changed/&&/unreachable/{print "\033['${__FONT_COLOR}'[" host"] "$0}
|
||||
+ END{print ("---"); for (var in npass) {printf ("[%s] ", var); if (nfatal[var]>0) {
|
||||
+ printf ("\033[31mFATAL ERROR!!! Playbook might have been aborted!!!\033['${__FONT_COLOR}' Last TASK and fatal output:\n"); print task_line, fatal_line
|
||||
+ exit 199
|
||||
+ }
|
||||
+ else printf ("\033[31mFAIL: %d \033[33mWARN: %d \033[32mPASS: %d\033['${__FONT_COLOR}'\n", nfail[var], nwarn[var], npass[var])}
|
||||
+ if (nfail[var] != 0) exit (nfail[var])
|
||||
+ }'
|
File diff suppressed because it is too large
Load Diff
@ -1,28 +0,0 @@
|
||||
commit 29003efa866e8f691076023ccf2eede2032173d6
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Thu Mar 4 13:10:01 2021 +0100
|
||||
|
||||
added detailed explanations for sap_hana_preconfigure_kernel_parameters_ppc64le in README.md
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index 74ca820..50359b5 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -245,6 +245,17 @@ sap_hana_preconfigure_kernel_parameters:
|
||||
- { name: net.ipv4.tcp_slow_start_after_idle, value: 0 }
|
||||
```
|
||||
|
||||
+### HANA kernel parameters for IBM POWER servers
|
||||
+[SAP Note 2055470](https://launchpad.support.sap.com/#/notes/2055470) contains links to IBM documents for SAP HANA on POWER.
|
||||
+Among these is a document document which contains certain recommended Linux kernel settings for SAP HANA on POWER:
|
||||
+Network_Configuration_for_HANA_Workloads_on_IBM_Power_Servers_V7.1.pdf.
|
||||
+This document is linked from SAP note 2055470 via "SAP HANA on IBM Power Systems and IBM System Storage - Guides", then via
|
||||
+"SAP on Linux and IBM Storage Guides (incl. HANA)", and then then via
|
||||
+"SAP on Power Linux Network and Fibre Channel Guides".
|
||||
+The default parameter recommendations are also defined in ./vars/{{ansible_os_release}}.yml. If you need to add or change parameters
|
||||
+for your system, copy these parameters from the vars file into the variable sap_hana_preconfigure_kernel_parameters_ppc64le and
|
||||
+add or change your settings, similar to the previous example.
|
||||
+
|
||||
Example Playbook
|
||||
----------------
|
||||
|
@ -1,93 +0,0 @@
|
||||
commit 3714dbb80889e65fb7152456fe262ab1fcc5e3e5
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Thu Mar 4 10:31:24 2021 +0100
|
||||
|
||||
fix issue #170
|
||||
|
||||
diff --git a/defaults/main.yml b/defaults/main.yml
|
||||
index b63c14b..02768cc 100644
|
||||
--- a/defaults/main.yml
|
||||
+++ b/defaults/main.yml
|
||||
@@ -92,6 +92,8 @@ sap_hana_preconfigure_fail_if_reboot_required: yes
|
||||
|
||||
sap_hana_preconfigure_kernel_parameters: "{{ __sap_hana_preconfigure_kernel_parameters_default }}"
|
||||
|
||||
+sap_hana_preconfigure_kernel_parameters_ppc64le: "{{ __sap_hana_preconfigure_kernel_parameters_default_ppc64le }}"
|
||||
+
|
||||
sap_hana_preconfigure_add_ibm_power_repo: yes
|
||||
|
||||
# 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'
|
||||
diff --git a/tasks/sapnote/2055470.yml b/tasks/sapnote/2055470.yml
|
||||
index b958e52..2f41057 100644
|
||||
--- a/tasks/sapnote/2055470.yml
|
||||
+++ b/tasks/sapnote/2055470.yml
|
||||
@@ -37,7 +37,7 @@
|
||||
loop_control:
|
||||
loop_var: line_item
|
||||
|
||||
-- name: add largesend parameter
|
||||
+- name: Add largesend parameters for ppc64le
|
||||
sysctl:
|
||||
sysctl_file: /etc/sysctl.d/ibm_largesend.conf
|
||||
name: "{{ line_item.name }}"
|
||||
@@ -45,12 +45,7 @@
|
||||
state: present
|
||||
sysctl_set: yes
|
||||
reload: yes
|
||||
- with_items:
|
||||
- - { name: net.core.rmem_max, value: 56623104 }
|
||||
- - { name: net.core.wmem_max, value: 56623104 }
|
||||
- - { name: net.ipv4.tcp_rmem, value: "65536 262088 56623104" }
|
||||
- - { name: net.ipv4.tcp_wmem, value: "65536 262088 56623104" }
|
||||
- - { name: net.ipv4.tcp_mem, value: "56623104 56623104 56623104" }
|
||||
+ with_items: "{{ sap_hana_preconfigure_kernel_parameters_ppc64le }}"
|
||||
loop_control:
|
||||
loop_var: line_item
|
||||
|
||||
diff --git a/tasks/sapnote/assert-2055470.yml b/tasks/sapnote/assert-2055470.yml
|
||||
index 2aaa697..3a87e05 100644
|
||||
--- a/tasks/sapnote/assert-2055470.yml
|
||||
+++ b/tasks/sapnote/assert-2055470.yml
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
- name: Get and assert kernel tunables for ppc64le
|
||||
include_tasks: ../RedHat/generic/sapnote-2055470-loop-block.yml
|
||||
- loop: "{{ __sap_hana_preconfigure_kernel_parameters_default_ppc64le }}"
|
||||
+ loop: "{{ sap_hana_preconfigure_kernel_parameters_ppc64le }}"
|
||||
loop_control:
|
||||
loop_var: line_item
|
||||
when:
|
||||
diff --git a/vars/RedHat_7.yml b/vars/RedHat_7.yml
|
||||
index 585f304..9dc0d83 100644
|
||||
--- a/vars/RedHat_7.yml
|
||||
+++ b/vars/RedHat_7.yml
|
||||
@@ -207,4 +207,12 @@ __sap_hana_preconfigure_kernel_parameters_default:
|
||||
# So we do not change the default.
|
||||
# - { name: net.ipv4.tcp_syn_retries, value: 8 }
|
||||
|
||||
+# Network related kernel parameters for ppc64le:
|
||||
+__sap_hana_preconfigure_kernel_parameters_default_ppc64le:
|
||||
+ - { name: net.core.rmem_max, value: 56623104 }
|
||||
+ - { name: net.core.wmem_max, value: 56623104 }
|
||||
+ - { name: net.ipv4.tcp_rmem, value: "65536 262088 56623104" }
|
||||
+ - { name: net.ipv4.tcp_wmem, value: "65536 262088 56623104" }
|
||||
+ - { name: net.ipv4.tcp_mem, value: "56623104 56623104 56623104" }
|
||||
+
|
||||
...
|
||||
diff --git a/vars/RedHat_8.yml b/vars/RedHat_8.yml
|
||||
index 2109126..843c034 100644
|
||||
--- a/vars/RedHat_8.yml
|
||||
+++ b/vars/RedHat_8.yml
|
||||
@@ -205,4 +205,12 @@ __sap_hana_preconfigure_kernel_parameters_default:
|
||||
# So we do not change the default.
|
||||
# - { name: net.ipv4.tcp_syn_retries, value: 8 }
|
||||
|
||||
+# Network related kernel parameters for ppc64le:
|
||||
+__sap_hana_preconfigure_kernel_parameters_default_ppc64le:
|
||||
+ - { name: net.core.rmem_max, value: 56623104 }
|
||||
+ - { name: net.core.wmem_max, value: 56623104 }
|
||||
+ - { name: net.ipv4.tcp_rmem, value: "65536 262088 56623104" }
|
||||
+ - { name: net.ipv4.tcp_wmem, value: "65536 262088 56623104" }
|
||||
+ - { name: net.ipv4.tcp_mem, value: "56623104 56623104 56623104" }
|
||||
+
|
||||
...
|
@ -1,26 +0,0 @@
|
||||
commit 4d55594e2e1cba77a095f146b7498e00949f9678
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Thu Mar 4 14:35:06 2021 +0100
|
||||
|
||||
typos in README.md
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index 50359b5..3f251d5 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -247,12 +247,12 @@ sap_hana_preconfigure_kernel_parameters:
|
||||
|
||||
### HANA kernel parameters for IBM POWER servers
|
||||
[SAP Note 2055470](https://launchpad.support.sap.com/#/notes/2055470) contains links to IBM documents for SAP HANA on POWER.
|
||||
-Among these is a document document which contains certain recommended Linux kernel settings for SAP HANA on POWER:
|
||||
+Among these is a document which contains certain recommended Linux kernel settings for SAP HANA on POWER:
|
||||
Network_Configuration_for_HANA_Workloads_on_IBM_Power_Servers_V7.1.pdf.
|
||||
This document is linked from SAP note 2055470 via "SAP HANA on IBM Power Systems and IBM System Storage - Guides", then via
|
||||
-"SAP on Linux and IBM Storage Guides (incl. HANA)", and then then via
|
||||
+"SAP on Linux and IBM Storage Guides (incl. HANA)", and then via
|
||||
"SAP on Power Linux Network and Fibre Channel Guides".
|
||||
-The default parameter recommendations are also defined in ./vars/{{ansible_os_release}}.yml. If you need to add or change parameters
|
||||
+The default parameter recommendations are defined in ./vars/{{ansible_os_release}}.yml. If you need to add or change parameters
|
||||
for your system, copy these parameters from the vars file into the variable sap_hana_preconfigure_kernel_parameters_ppc64le and
|
||||
add or change your settings, similar to the previous example.
|
||||
|
@ -1,197 +0,0 @@
|
||||
commit 7ffd72dcbb8cda6e9b12d9d9f23a20866b143d02
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Tue Feb 23 18:52:16 2021 +0100
|
||||
|
||||
fix issues #163 and #164
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index b6f6232..74ca820 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -62,7 +62,7 @@ Do not run this role against an SAP HANA or other production system. The role wi
|
||||
|
||||
Changes
|
||||
-------
|
||||
-The previous version of this role used variable sap_hana_preconfigure_use_tuned_where_possible to switch between either tuned settings or kernel command line settings (where applicable).
|
||||
+1) Previous versions of this role used variable sap_hana_preconfigure_use_tuned_where_possible to switch between either tuned settings or kernel command line settings (where applicable).
|
||||
The current version modifies this behavior:
|
||||
- The variable sap_hana_preconfigure_use_tuned_where_possible has been renamed to sap_hana_preconfigure_use_tuned
|
||||
- The variable sap_hana_preconfigure_switch_to_tuned_profile_sap_hana has been removed.
|
||||
@@ -70,6 +70,12 @@ The current version modifies this behavior:
|
||||
If sap_hana_preconfigure_use_tuned is set to `no`, the role will perform a static configuration, including the modification of the linux command line in grub.
|
||||
- The role can use tuned, or configure the kernel command line, or both.
|
||||
|
||||
+2) Previous versions of this role used variable sap_hana_preconfigure_selinux_state to set the SELinux state to disabled, which is mentioned in
|
||||
+SAP notes 2292690 (RHEL 7) and 2777782 (RHEL 8). As role sap-preconfigure already allows to specify the desired SELinux state, and as
|
||||
+sap-preconfigure is run before sap-hana-preconfigure, there is no need any more to let sap-hana-preconfigure configure the SELinux state.
|
||||
+Same applies to the assertion of the SELinux state. Because of this, variable sap_hana_preconfigure_selinux_state has been removed from this role and
|
||||
+tasks 2292690/08-disable-selinux.yml and 2777782/01-assert-selinux.yml have been commented out.
|
||||
+
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
@@ -91,8 +97,8 @@ sap_hana_preconfigure_configuration
|
||||
### Define configuration steps of SAP notes
|
||||
For defining one or more configuration steps of SAP notes to be executed or checked only, set variable `sap_hana_preconfigure_config_all` to `no`, `sap_hana_preconfigure_configuration` to `yes`, and one or more of the following variables to `yes`:
|
||||
```yaml
|
||||
-sap_hana_preconfigure_2777782_[01...10], example: sap_hana_preconfigure_2777782_05
|
||||
-sap_hana_preconfigure_2292690_[01...10], example: sap_hana_preconfigure_2292690_02
|
||||
+sap_hana_preconfigure_2777782_[02...10], example: sap_hana_preconfigure_2777782_05
|
||||
+sap_hana_preconfigure_2292690_[01...07,09,10], example: sap_hana_preconfigure_2292690_02
|
||||
sap_hana_preconfigure_2009879_3_9
|
||||
sap_hana_preconfigure_2009879_3_14_[1...4]
|
||||
sap_hana_preconfigure_2009879_3_15
|
||||
@@ -156,6 +162,19 @@ If you want the role to set the RHEL release to a certain fixed minor release (a
|
||||
sap_hana_preconfigure_set_minor_release
|
||||
```
|
||||
|
||||
+### Minimum package check
|
||||
+The following variable will make sure packages are installed at minimum required versions as defined in files `vars/*.yml`. Default is `yes`.
|
||||
+```yaml
|
||||
+sap_hana_preconfigure_min_package_check
|
||||
+```
|
||||
+
|
||||
+### Perform a yum update
|
||||
+If the following variable is set to `yes`, the role will run a `yum update` before performing configuration changes. Default is `no`. \
|
||||
+*Note*: The outcome of a `yum update` depends on the managed node's configuration for sticky OS minor version, see the description of the release option in `man subscription-manager`. For SAP HANA installations, setting a certain minor version with `subscscription-manager release --set=X.Y` is a strict requirement.
|
||||
+```yaml
|
||||
+sap_hana_preconfigure_update
|
||||
+```
|
||||
+
|
||||
### Add the repository for IBM service and productivity tools for POWER (ppc64le only)
|
||||
In case you do *not* want to automatically add the repository for the IBM service and productivity tools, set the following variable to `no`. Default is `yes`, meaning that the role will download and install the package specified in variable sap_hana_preconfigure_ibm_power_repo_url (see below) and also run the command /opt/ibm/lop/configure to accept the license.
|
||||
```yaml
|
||||
@@ -183,12 +202,6 @@ By setting the variable to `no`, the role will not fail if a reboot is required
|
||||
sap_hana_preconfigure_fail_if_reboot_required
|
||||
```
|
||||
|
||||
-### Define SELinux state
|
||||
-The following variable allows for defining the desired SELinux state. Default is `disabled`.
|
||||
-```yaml
|
||||
-sap_hana_preconfigure_selinux_state
|
||||
-```
|
||||
-
|
||||
### Use tuned profile sap-hana
|
||||
By default, the role will activate tuned profile `sap-hana` for configuring kernel parameters (where possible). If you do not want to use the tuned profile sap-hana,
|
||||
set the following variable to `no`. In this case, the role will also modify GRUB_CMDLINE_LINUX, no matter how variable `sap_hana_preconfigure_modify_grub_cmdline_linux` (see below) is set.
|
||||
@@ -227,7 +240,7 @@ into the variable sap_hana_preconfigure_kernel_parameters and add or change your
|
||||
```yaml
|
||||
sap_hana_preconfigure_kernel_parameters:
|
||||
- { name: net.core.somaxconn, value: 4096 }
|
||||
- - { name: net.ipv4.tcp_max_syn_backlog, value: 8192}
|
||||
+ - { name: net.ipv4.tcp_max_syn_backlog, value: 8192 }
|
||||
- { name: net.ipv4.tcp_timestamps, value: 1 }
|
||||
- { name: net.ipv4.tcp_slow_start_after_idle, value: 0 }
|
||||
```
|
||||
diff --git a/defaults/main.yml b/defaults/main.yml
|
||||
index 50d8e14..b63c14b 100644
|
||||
--- a/defaults/main.yml
|
||||
+++ b/defaults/main.yml
|
||||
@@ -24,7 +24,6 @@
|
||||
## examples for RHEL8:
|
||||
#sap_hana_preconfigure_2777782_03: yes
|
||||
#sap_hana_preconfigure_2777782_10: yes
|
||||
-#sap_hana_preconfigure_2772999_09: yes
|
||||
## both:
|
||||
#sap_hana_preconfigure_2382421: yes
|
||||
|
||||
@@ -107,7 +106,8 @@ sap_hana_preconfigure_ppcle_mtu9000_if: ''
|
||||
## defaults to all interfaces
|
||||
sap_hana_preconfigure_ppcle_tso_if: "{{ ansible_interfaces| difference(['lo']) }}"
|
||||
|
||||
-sap_hana_preconfigure_selinux_state: "{{ __sap_hana_preconfigure_selinux_state }}"
|
||||
+# SELinux is already configured in role sap-preconfigure:
|
||||
+#sap_hana_preconfigure_selinux_state: "{{ __sap_hana_preconfigure_selinux_state }}"
|
||||
|
||||
sap_hana_preconfigure_use_tuned: yes
|
||||
|
||||
diff --git a/tasks/RedHat/assert-installation.yml b/tasks/RedHat/assert-installation.yml
|
||||
index eda7d22..55346b9 100644
|
||||
--- a/tasks/RedHat/assert-installation.yml
|
||||
+++ b/tasks/RedHat/assert-installation.yml
|
||||
@@ -169,7 +169,7 @@
|
||||
args:
|
||||
warn: false
|
||||
changed_when: false
|
||||
- ignore_errors: "{{ sap_hana_preconfigure_ignore_errors|d(false) }}"
|
||||
+ ignore_errors: "{{ sap_hana_preconfigure_assert_ignore_errors|d(false) }}"
|
||||
when: sap_hana_preconfigure_update
|
||||
|
||||
- name: Assert that there are no more possible package updates
|
||||
diff --git a/tasks/sapnote/2292690.yml b/tasks/sapnote/2292690.yml
|
||||
index 8b4c95c..3137f22 100644
|
||||
--- a/tasks/sapnote/2292690.yml
|
||||
+++ b/tasks/sapnote/2292690.yml
|
||||
@@ -22,7 +22,7 @@
|
||||
- import_tasks: 2292690/07-disable-ksm.yml
|
||||
when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2292690_07|d(false)
|
||||
|
||||
-# We can skip the following task as it is already part of role sap-preconfigure:
|
||||
+# SELinux is already configured in role sap-preconfigure:
|
||||
#- import_tasks: 2292690/08-disable-selinux.yml
|
||||
# when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2292690_08|d(false)
|
||||
|
||||
diff --git a/tasks/sapnote/2777782.yml b/tasks/sapnote/2777782.yml
|
||||
index ec4677f..8c904bb 100644
|
||||
--- a/tasks/sapnote/2777782.yml
|
||||
+++ b/tasks/sapnote/2777782.yml
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
# tasks file for sap-hana-preconfigure configuration
|
||||
|
||||
-- import_tasks: 2777782/01-disable-selinux.yml
|
||||
- when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2777782_01|d(false)
|
||||
+# SELinux is already configured in role sap-preconfigure:
|
||||
+#- import_tasks: 2777782/01-disable-selinux.yml
|
||||
+# when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2777782_01|d(false)
|
||||
|
||||
- import_tasks: 2777782/02-configure-tuned.yml
|
||||
when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2777782_02|d(false)
|
||||
diff --git a/tasks/sapnote/assert-2292690.yml b/tasks/sapnote/assert-2292690.yml
|
||||
index 588f6c8..b9a5cf2 100644
|
||||
--- a/tasks/sapnote/assert-2292690.yml
|
||||
+++ b/tasks/sapnote/assert-2292690.yml
|
||||
@@ -25,9 +25,9 @@
|
||||
- import_tasks: 2292690/07-assert-ksm.yml
|
||||
when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2292690_07|d(false)
|
||||
|
||||
-# The following task is already part of role sap-preconfigure:
|
||||
-- import_tasks: 2292690/08-assert-selinux.yml
|
||||
- when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2292690_08|d(false)
|
||||
+# SELinux is already configured in role sap-preconfigure:
|
||||
+#- import_tasks: 2292690/08-assert-selinux.yml
|
||||
+# when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2292690_08|d(false)
|
||||
|
||||
- import_tasks: 2292690/09-assert-etc-sudoers.yml
|
||||
when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2292690_09|d(false)
|
||||
diff --git a/tasks/sapnote/assert-2777782.yml b/tasks/sapnote/assert-2777782.yml
|
||||
index e226e00..995960a 100644
|
||||
--- a/tasks/sapnote/assert-2777782.yml
|
||||
+++ b/tasks/sapnote/assert-2777782.yml
|
||||
@@ -4,9 +4,9 @@
|
||||
- debug:
|
||||
msg: "sapnote/assert-2777782.yml"
|
||||
|
||||
-# The following task is already part of role sap-preconfigure:
|
||||
-- import_tasks: 2777782/01-assert-selinux.yml
|
||||
- when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2777782_01|d(false)
|
||||
+# SELinux is already configured in role sap-preconfigure:
|
||||
+#- import_tasks: 2777782/01-assert-selinux.yml
|
||||
+# when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2777782_01|d(false)
|
||||
|
||||
- import_tasks: 2777782/02-assert-tuned.yml
|
||||
when: sap_hana_preconfigure_config_all|d(true) or sap_hana_preconfigure_2777782_02|d(false)
|
||||
diff --git a/vars/main.yml b/vars/main.yml
|
||||
index 183f4a1..490b0fc 100644
|
||||
--- a/vars/main.yml
|
||||
+++ b/vars/main.yml
|
||||
@@ -7,7 +7,8 @@
|
||||
# Default parameter file for SYSCTL settings according to SAP NOTE 2382421
|
||||
__sap_hana_preconfigure_etc_sysctl_saphana_conf: /etc/sysctl.d/sap_hana.conf
|
||||
|
||||
-__sap_hana_preconfigure_selinux_state: disabled
|
||||
+# SELinux is already configured in role sap-preconfigure:
|
||||
+#__sap_hana_preconfigure_selinux_state: disabled
|
||||
|
||||
__sap_hana_preconfigure_run_grub2_mkconfig: yes
|
||||
|
@ -1,24 +0,0 @@
|
||||
commit 2bc922671e92c12d3954c249c51d4281e12d1274
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Thu Mar 4 22:37:21 2021 +0100
|
||||
|
||||
solve issue #130
|
||||
|
||||
diff --git a/tasks/assert-installation.yml b/tasks/assert-installation.yml
|
||||
index ae8c144..74a0378 100644
|
||||
--- a/tasks/assert-installation.yml
|
||||
+++ b/tasks/assert-installation.yml
|
||||
@@ -16,10 +16,9 @@
|
||||
|
||||
- name: Assert that all required RHEL 7 package groups are installed
|
||||
assert:
|
||||
- that:
|
||||
- - "'{{ line_item|replace(\'@\', \'\') }}' in yum_group_result.stdout_lines"
|
||||
- fail_msg: "FAIL: Package group '{{ line_item|replace(\'@\', \'\') }}' is not installed!"
|
||||
- success_msg: "PASS: Package group '{{ line_item|replace(\'@\', \'\') }}' is installed."
|
||||
+ that: "'{{ line_item|replace(\"@\", \"\") }}' in yum_group_result.stdout_lines"
|
||||
+ fail_msg: "FAIL: Package group '{{ line_item|replace(\"@\", \"\") }}' is not installed!"
|
||||
+ success_msg: "PASS: Package group '{{ line_item|replace(\"@\", \"\") }}' is installed."
|
||||
with_items:
|
||||
- "{{ __sap_preconfigure_packagegroups }}"
|
||||
loop_control:
|
@ -1,49 +0,0 @@
|
||||
commit 6169bd8d447ce60012f7fd8a3d664a1bae2b3c0a
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Tue Feb 23 18:56:13 2021 +0100
|
||||
|
||||
fix issue #125
|
||||
|
||||
diff --git a/tasks/RedHat/generic/assert-etc-hosts.yml b/tasks/RedHat/generic/assert-etc-hosts.yml
|
||||
index 3304d73..b8d8830 100644
|
||||
--- a/tasks/RedHat/generic/assert-etc-hosts.yml
|
||||
+++ b/tasks/RedHat/generic/assert-etc-hosts.yml
|
||||
@@ -54,8 +54,10 @@
|
||||
success_msg: "PASS: There is only one line containing '{{ sap_ip }}' in /etc/hosts."
|
||||
ignore_errors: "{{ sap_preconfigure_assert_ignore_errors|d(false) }}"
|
||||
|
||||
-- name: Check for duplicate entries of {{ sap_hostname }}.{{ sap_domain }} in /etc/hosts
|
||||
- command: awk 'BEGIN{a=0}/{{ sap_hostname }}.{{ sap_domain }}/{a++}END{print a}' /etc/hosts
|
||||
+- name: Check for duplicate or missing entries of {{ sap_hostname }}.{{ sap_domain }} in /etc/hosts
|
||||
+ command: awk '/^{{ sap_hostname }}.{{ sap_domain }} /||
|
||||
+ / {{ sap_hostname }}.{{ sap_domain }} /||
|
||||
+ / {{ sap_hostname }}.{{ sap_domain }}$/{a++}END{print a}' /etc/hosts
|
||||
register: __shell_03_result
|
||||
ignore_errors: yes
|
||||
changed_when: no
|
||||
@@ -67,8 +69,10 @@
|
||||
success_msg: "PASS: There is only one line containing '{{ sap_hostname }}.{{ sap_domain }}' in /etc/hosts."
|
||||
ignore_errors: "{{ sap_preconfigure_assert_ignore_errors|d(false) }}"
|
||||
|
||||
-- name: Check for duplicate entries of {{ sap_hostname }} in /etc/hosts
|
||||
- command: awk 'BEGIN{a=0}/{{ sap_hostname }}/{a++}END{print a}' /etc/hosts
|
||||
+- name: Check for duplicate or missing entries of {{ sap_hostname }} in /etc/hosts
|
||||
+ command: awk '/^{{ sap_hostname }} /||
|
||||
+ / {{ sap_hostname }} /||
|
||||
+ / {{ sap_hostname }}$/{a++}END{print a}' /etc/hosts
|
||||
register: __shell_04_result
|
||||
ignore_errors: yes
|
||||
changed_when: no
|
||||
diff --git a/tasks/RedHat/generic/configure-etc-hosts.yml b/tasks/RedHat/generic/configure-etc-hosts.yml
|
||||
index 2ae3a18..0a1ec59 100644
|
||||
--- a/tasks/RedHat/generic/configure-etc-hosts.yml
|
||||
+++ b/tasks/RedHat/generic/configure-etc-hosts.yml
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
- name: Check for duplicate or missing entries of hostname and fqdn in /etc/hosts
|
||||
shell: |
|
||||
- n=$(grep -w "{{ line_item }}" /etc/hosts | wc -l)
|
||||
+ n=$(awk '/^{{ line_item }} /||/ {{ line_item }} /||/ {{ line_item }}$/{a++}END{print a}' /etc/hosts)
|
||||
if [ $n -eq 1 ]; then
|
||||
exit 0
|
||||
else
|
@ -1,87 +1,342 @@
|
||||
Name: rhel-system-roles-sap
|
||||
# disable collection_artifact by default
|
||||
%bcond_with collection_artifact
|
||||
|
||||
# disable collection by default since version 3.6.0 (1.3.4)
|
||||
%bcond_with collection
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} > 8
|
||||
%bcond_without html
|
||||
%else
|
||||
# pandoc is not supported in rhel 7 and older,
|
||||
# which is needed for converting .md to .html.
|
||||
%bcond_with html
|
||||
%endif
|
||||
|
||||
%global collection_name sap_install
|
||||
%if 0%{?rhel}
|
||||
%define package_name rhel-system-roles-sap
|
||||
%global collection_namespace redhat
|
||||
%else
|
||||
%define package_name linux-system-roles-sap
|
||||
%global collection_namespace community
|
||||
%endif
|
||||
|
||||
# collection_version has to be increased by every rebuild
|
||||
# otherwise, it cannot be uploaded to Automation Hub and Galaxy
|
||||
# due to version conflict
|
||||
%define collection_version 1.3.5
|
||||
|
||||
%global mainid e2a233f5a0cb68363798bf014b16552cca681bd0
|
||||
%global commit_id_sap_install %{collection_version}
|
||||
%global rolename1 sap_general_preconfigure
|
||||
%global rolename2 sap_ha_install_hana_hsr
|
||||
%global rolename3 sap_hana_install
|
||||
%global rolename4 sap_hana_preconfigure
|
||||
%global rolename5 sap_ha_pacemaker_cluster
|
||||
%global rolename6 sap_hypervisor_node_preconfigure
|
||||
%global rolename7 sap_netweaver_preconfigure
|
||||
%global rolename8 sap_swpm
|
||||
%global rolename9 sap_vm_preconfigure
|
||||
%global src_owner linux-system-roles
|
||||
%global github_repo_sap_install redhat.sap_install
|
||||
%global rolename_rhel %{rolename1} %{rolename2} %{rolename3} %{rolename4} %{rolename5} %{rolename6} %{rolename7} %{rolename8} %{rolename9}
|
||||
%global rolenames %{rolename_rhel}
|
||||
|
||||
Name: %{package_name}
|
||||
Summary: System Roles to configure RHEL for running SAP NetWeaver- or SAP HANA-based products
|
||||
Version: 3.0.1
|
||||
Release: 4%{?dist}
|
||||
License: GPLv3+
|
||||
Url: https://github.com/berndfinger
|
||||
Source0: https://github.com/berndfinger/sap-preconfigure/releases/download/3.0.1/sap-preconfigure.tar.gz
|
||||
Source1: https://github.com/berndfinger/sap-hana-preconfigure/releases/download/3.0.1/sap-hana-preconfigure.tar.gz
|
||||
Source2: https://github.com/berndfinger/sap-netweaver-preconfigure/releases/download/3.0.1/sap-netweaver-preconfigure.tar.gz
|
||||
# patches 0-49 for sap-preconfigure
|
||||
Patch0: sap-preconfigure-6169bd8d447ce60012f7fd8a3d664a1bae2b3c0a.patch
|
||||
Patch1: sap-preconfigure-2bc922671e92c12d3954c249c51d4281e12d1274.patch
|
||||
# patches 50-99 for sap-hana-preconfigure
|
||||
Patch50: sap-hana-preconfigure-7ffd72dcbb8cda6e9b12d9d9f23a20866b143d02.patch
|
||||
Patch51: sap-hana-preconfigure-3714dbb80889e65fb7152456fe262ab1fcc5e3e5.patch
|
||||
Patch52: sap-hana-preconfigure-29003efa866e8f691076023ccf2eede2032173d6.patch
|
||||
Patch53: sap-hana-preconfigure-4d55594e2e1cba77a095f146b7498e00949f9678.patch
|
||||
# patches 100-149 for sap-netweaver-preconfigur
|
||||
Version: 3.6.0
|
||||
Release: 2%{?dist}
|
||||
License: GPL-3.0-or-later
|
||||
Url: https://github.com/redhat-sap/community.sap_install
|
||||
Source0: https://github.com/linux-system-roles/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
|
||||
Source1: https://github.com/redhat-sap/redhat.sap_install/archive/%{commit_id_sap_install}/%{github_repo_sap_install}-%{commit_id_sap_install}.tar.gz
|
||||
|
||||
# add collection files
|
||||
Patch1: redhat.sap_install-1.3.5-collections-files-324bfb8bab50d2baa1c4aacdb59e4e5c9e2ba74f.patch
|
||||
|
||||
# add tests files
|
||||
Patch2: redhat.sap_install-1.3.4-add_tests.patch
|
||||
|
||||
# add tools files
|
||||
Patch3: redhat.sap_install-1.3.4-add_tools.patch
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: uuidd
|
||||
|
||||
Requires: rhel-system-roles
|
||||
|
||||
%if %{with html}
|
||||
# Requirements for md2html.sh to build the documentation
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||
BuildRequires: rubygem-kramdown-parser-gfm
|
||||
%else
|
||||
BuildRequires: pandoc
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: highlight
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# Requirements for galaxy_transform.py
|
||||
BuildRequires: python3
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||
BuildRequires: python3dist(ruamel.yaml)
|
||||
Requires: python3-jmespath
|
||||
Requires: python3-netaddr
|
||||
%else
|
||||
BuildRequires: python3-ruamel-yaml
|
||||
Requires: python-jmespath
|
||||
Requires: python-netaddr
|
||||
%endif
|
||||
|
||||
# NOTE: ansible-core is in rhel-8.6 and newer, but not installable
|
||||
# in buildroot as it depended on modular Python.
|
||||
# It has been installable at buildtime in 8.8 and newer.
|
||||
%if %{with collection}
|
||||
%if 0%{?rhel} >= 8
|
||||
BuildRequires: ansible-core >= 2.11.0
|
||||
Requires: (ansible-core >= 2.11.0 or ansible >= 2.9.0)
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{undefined __ansible_provides}
|
||||
Provides: ansible-collection(%{collection_namespace}.%{collection_name}) = %{version}
|
||||
%endif
|
||||
# be compatible with the usual Fedora Provides:
|
||||
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{version}-%{release}
|
||||
|
||||
# ansible-galaxy is available by ansible-core on RHEL 8.6 and newer at buildtime.
|
||||
%define ansible_collection_build() ansible-galaxy collection build
|
||||
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||
%{!?ansible_collection_files:%define ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/}
|
||||
%else
|
||||
%if %{?ansible_collection_files:0}%{!?ansible_collection_files:1}
|
||||
%define ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
Collection of Ansible roles which configures a RHEL system according
|
||||
to applicable SAP notes so that any SAP software can be installed.
|
||||
|
||||
%if %{with collection_artifact}
|
||||
%package collection-artifact
|
||||
Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
|
||||
|
||||
%description collection-artifact
|
||||
Collection artifact for %{name}. This package contains %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -T -c -n %{name}-%{version} -a 0 -a 1 -a 2
|
||||
pushd sap-preconfigure
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
popd
|
||||
pushd sap-hana-preconfigure
|
||||
%patch50 -p1
|
||||
%patch51 -p1
|
||||
%patch52 -p1
|
||||
%patch53 -p1
|
||||
%setup -q -a1 -n auto-maintenance-%{mainid}
|
||||
|
||||
pushd %{github_repo_sap_install}-%{commit_id_sap_install}/
|
||||
%patch -P1 -p1
|
||||
%patch -P2 -p1
|
||||
%patch -P3 -p1
|
||||
# workaround for md2html error
|
||||
sed -i -e "s|for POWER ||g" roles/sap_hana_preconfigure/README.md
|
||||
popd
|
||||
|
||||
# remove all SLES stuff
|
||||
rm -rf sap-hana-preconfigure/tasks/SLES
|
||||
rm -rf sap-hana-preconfigure/tasks/SLES15
|
||||
rm -rf sap-hana-preconfigure/tasks/sapnote/1275776 # SLES - sapconf, saptune, etc
|
||||
rm -rf sap-hana-preconfigure/tasks/sapnote/1944799* # SLES - HANA install and config guidelines
|
||||
rm -rf sap-hana-preconfigure/tasks/sapnote/2578899 # SLES 15 - installation
|
||||
rm -rf sap-hana-preconfigure/tasks/sapnote/2684254 # SLES 15 - OS settings for HANA
|
||||
rm -f sap-hana-preconfigure/vars/SLES_15.yml
|
||||
# remove zero file and symlinks
|
||||
find . -type f -size 0 -delete
|
||||
find . -type l -delete
|
||||
|
||||
# remove all RHEL 6 stuff
|
||||
rm -f sap-hana-preconfigure/tasks/sapnote/2013638.yml # RHEL 6.5 - OS settings
|
||||
rm -f sap-hana-preconfigure/tasks/sapnote/2136965.yml # RHEL 6.6 - OS settings
|
||||
rm -f sap-hana-preconfigure/tasks/sapnote/2247020.yml # RHEL 6.7 - OS settings
|
||||
rm -f sap-hana-preconfigure/vars/RedHat_6.5.yml
|
||||
rm -f sap-hana-preconfigure/vars/RedHat_6.6.yml
|
||||
rm -f sap-hana-preconfigure/vars/RedHat_6.7.yml
|
||||
# fix python and bash shebangs
|
||||
find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!/usr/bin/python3=' {} +
|
||||
find -type f \( -iname "*.sh" \) -exec sed -i '1s=^#! */bin/bash=#!/usr/bin/bash=' {} +
|
||||
|
||||
# remove json files, these are already present in the collection subdirectory
|
||||
rm -f FILES.json MANIFEST.json
|
||||
|
||||
%build
|
||||
%if %{with html}
|
||||
readmes=""
|
||||
for role in %{rolenames}; do
|
||||
readmes="${readmes} %{github_repo_sap_install}-%{commit_id_sap_install}/roles/$role/README.md"
|
||||
done
|
||||
sh md2html.sh $readmes %{github_repo_sap_install}-%{commit_id_sap_install}/README.md
|
||||
%endif
|
||||
|
||||
%if %{with collection}
|
||||
# create dest-path
|
||||
mkdir .collections
|
||||
|
||||
for role in %{rolenames} ; do
|
||||
LANG=en_US.utf-8 LC_ALL=en_US.utf-8 python3 lsr_role2collection.py --role "$role" \
|
||||
--src-path %{github_repo_sap_install}-%{commit_id_sap_install}/roles/"$role" \
|
||||
--src-owner %{src_owner} \
|
||||
--dest-path .collections \
|
||||
--namespace %{collection_namespace} \
|
||||
--collection %{collection_name} \
|
||||
--new-role "$new_role"
|
||||
done
|
||||
|
||||
cp -p galaxy.yml .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
||||
# update README.md
|
||||
cp %{github_repo_sap_install}-%{commit_id_sap_install}/README.md .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
||||
|
||||
# Build the collection
|
||||
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||
%ansible_collection_build
|
||||
popd
|
||||
|
||||
%endif
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}/sap-hana-preconfigure \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}/sap-preconfigure \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}/sap-netweaver-preconfigure
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}
|
||||
|
||||
# drop zero file
|
||||
rm -f */.gitignore sap-hana-preconfigure/tasks/RedHat_6/recommendations.yml
|
||||
# create file selection for documents
|
||||
echo "%dir %{_pkgdocdir}" > files_section.txt
|
||||
cp %{github_repo_sap_install}-%{commit_id_sap_install}/README.md $RPM_BUILD_ROOT%{_pkgdocdir}/
|
||||
|
||||
cp -pR sap-hana-preconfigure sap-preconfigure sap-netweaver-preconfigure $RPM_BUILD_ROOT%{_datadir}/ansible/roles/
|
||||
cp -p sap-hana-preconfigure/{README.md,LICENSE} $RPM_BUILD_ROOT%{_pkgdocdir}/sap-hana-preconfigure/
|
||||
cp -p sap-preconfigure/{README.md,LICENSE} $RPM_BUILD_ROOT%{_pkgdocdir}/sap-preconfigure/
|
||||
cp -p sap-netweaver-preconfigure/{README.md,LICENSE} $RPM_BUILD_ROOT%{_pkgdocdir}/sap-netweaver-preconfigure/
|
||||
%if %{with html}
|
||||
cp %{github_repo_sap_install}-%{commit_id_sap_install}/README.html $RPM_BUILD_ROOT%{_pkgdocdir}/
|
||||
%endif
|
||||
echo "%{_pkgdocdir}/README.*" >> files_section.txt
|
||||
|
||||
%files
|
||||
%dir %{_pkgdocdir}
|
||||
%dir %{_pkgdocdir}/sap-preconfigure
|
||||
%dir %{_pkgdocdir}/sap-hana-preconfigure
|
||||
%dir %{_pkgdocdir}/sap-netweaver-preconfigure
|
||||
for role in %{rolenames} ; do
|
||||
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/$role
|
||||
cp -pR %{github_repo_sap_install}-%{commit_id_sap_install}/roles/$role $RPM_BUILD_ROOT%{_datadir}/ansible/roles/
|
||||
install -m 644 %{github_repo_sap_install}-%{commit_id_sap_install}/LICENSE \
|
||||
%{github_repo_sap_install}-%{commit_id_sap_install}/roles/$role/README.md \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}/$role/
|
||||
%if %{with html}
|
||||
install -m 644 %{github_repo_sap_install}-%{commit_id_sap_install}/roles/$role/README.html \
|
||||
$RPM_BUILD_ROOT%{_pkgdocdir}/$role/
|
||||
%endif
|
||||
echo "%dir %{_pkgdocdir}/$role" >> files_section.txt
|
||||
done
|
||||
|
||||
# install collection files
|
||||
%if %{with collection}
|
||||
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||
%ansible_collection_install
|
||||
popd
|
||||
%else
|
||||
cp -pR %{github_repo_sap_install}-%{commit_id_sap_install}/collections $RPM_BUILD_ROOT%{_datadir}/ansible/
|
||||
%endif
|
||||
|
||||
# install collection_artifact
|
||||
%if %{with collection_artifact}
|
||||
# Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
|
||||
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||
mv %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz $RPM_BUILD_ROOT%{_datadir}/ansible/collections/
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files -f files_section.txt
|
||||
%dir %{_datadir}/ansible
|
||||
%dir %{_datadir}/ansible/roles
|
||||
%doc %{_pkgdocdir}/*/README.md
|
||||
%license %{_pkgdocdir}/*/LICENSE
|
||||
%{_datadir}/ansible/roles/*
|
||||
|
||||
%if %{with html}
|
||||
%{_pkgdocdir}/*/README.html
|
||||
%endif
|
||||
%if %{with collection}
|
||||
%{ansible_collection_files}
|
||||
%else
|
||||
%{_datadir}/ansible/collections
|
||||
%endif
|
||||
%if %{with collection_artifact}
|
||||
%files collection-artifact
|
||||
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Feb 05 2024 Than Ngo <than@redhat.com> - 3.6.0-2
|
||||
- sap_hypervisor_node_preconfigure: fix for role name and path for included tasks
|
||||
- update collection files
|
||||
Related: RHEL-16897
|
||||
|
||||
* Thu Jan 25 2024 Than Ngo <than@redhat.com> - 3.6.0-1
|
||||
- rebase sap roles to version 1.3.4
|
||||
- add collection files
|
||||
- update README files and add missing galaxy.yml, LICENSE
|
||||
- fix syntax error for defining dependent collections in galaxy.yml
|
||||
- add tools and tests
|
||||
Resolves: RHEL-16897
|
||||
|
||||
* Mon May 08 2023 Than Ngo <than@redhat.com> - 3.5.0-1
|
||||
- updated README.md files for sap and sap_swpm roles
|
||||
- migrated to SPDX license
|
||||
- converted patch macro use to the most compatible syntax
|
||||
- rebased sap roles to version 1.2.3
|
||||
Resolves: #2185037
|
||||
|
||||
|
||||
* Mon Jan 30 2023 Than Ngo <than@redhat.com> - 3.4.0-3
|
||||
- Related: #2155876, rebase sap roles to version 1.2.1
|
||||
|
||||
* Thu Jan 19 2023 Than Ngo <than@redhat.com> - 3.4.0-2
|
||||
- Related: #2155876, compat-sap-c++-10 is not available for RHEL 8.2 and earlier on hardware platform s390x
|
||||
|
||||
* Wed Jan 11 2023 Than Ngo <than@redhat.com> - 3.4.0-1
|
||||
- Resolves: #2155876, rebase sap roles to version 1.2.0
|
||||
|
||||
* Tue Nov 22 2022 Than Ngo <than@redhat.com> - 3.3.0-4
|
||||
- Resolves: #2142957, drop deprecated paramater for Ansible 2.14
|
||||
|
||||
* Fri Jul 15 2022 Than Ngo <than@redhat.com> - 3.3.0-3
|
||||
- update galaxy.yml and README.md and url
|
||||
Related: #2103633
|
||||
|
||||
* Tue Jul 12 2022 Than Ngo <than@redhat.com> - 3.3.0-2
|
||||
- make the role Ansible 2.13 compliant
|
||||
- get rid of all the new ansible-lint 6.3.0 errors for preconfigure and sap_hana_install roles
|
||||
Resolves: #2103633
|
||||
|
||||
* Mon Jul 04 2022 Than Ngo <than@redhat.com> - 3.3.0-1
|
||||
- Resolves: #2103633, include roles for setting up a two-node SAP HANA pacemaker cluster
|
||||
|
||||
* Thu Jun 09 2022 Than Ngo <than@redhat.com> - 3.2.0-3
|
||||
- sap_hana_preconfigure: Add vars for RHEL 9.1 managed nodes
|
||||
- sap_general_preconfigure: fix variable inclusion for RHEL minor releases
|
||||
Related: #2063050
|
||||
|
||||
* Wed Jun 08 2022 Than Ngo <than@redhat.com> - 3.2.0-2
|
||||
- sap_general_preconfigure: do not attempt to enable HANA repos for s390x
|
||||
- sap_hana_preconfigure: using wrong variable name
|
||||
- sap_hana_preconfigure: Fix issue sap-linuxlab#154
|
||||
Related: #2063050
|
||||
|
||||
* Mon Mar 21 2022 Than Ngo <than@redhat.com> - 3.2.0-1
|
||||
- Resolves: #2063050, rebase to new upstream org sap-linuxlab
|
||||
|
||||
* Fri Dec 03 2021 Than Ngo <than@redhat.com> - 3.1.1-10
|
||||
- Related: #2016858, increase release to avoid update conflict
|
||||
|
||||
* Fri Dec 03 2021 Than Ngo <than@redhat.com> - 3.1.1-8
|
||||
- Related: #2016858, rebase
|
||||
|
||||
* Tue Nov 16 2021 Than Ngo <than@redhat.com> - 3.1.1-7
|
||||
- Resolves: #2016858, ansible-lint cleanup
|
||||
|
||||
* Wed Sep 08 2021 Than Ngo <than@redhat.com> - 3.1.1-6
|
||||
- set min kernel version for RHEL 8.4 x86_64
|
||||
- use grubby for setting tsx=on
|
||||
- add tsx=on to the kernel command line unconditionally
|
||||
|
||||
* Wed Sep 01 2021 Than Ngo <than@redhat.com> - 3.1.1-5
|
||||
- Related: #1928398, fix yum group install errors on RHEL 7
|
||||
|
||||
* Fri Aug 20 2021 Than Ngo <than@redhat.com> - 3.1.1-4
|
||||
- Related: #1928398, fix #149, #177, #193, #194
|
||||
|
||||
* Mon Jul 12 2021 Than Ngo <than@redhat.com> - 3.1.1-3
|
||||
- add missing __sap_preconfigure_envgroups for RHEL 7.x
|
||||
- add __sap_hana_preconfigure_req_repos variables for RHEL 8.5 and later
|
||||
Related: #1928398
|
||||
|
||||
* Thu Jul 01 2021 Than Ngo <than@redhat.com> - 3.1.1-2
|
||||
- Related: #1928398, add missing changelogs
|
||||
|
||||
* Tue Jun 29 2021 Than Ngo <than@redhat.com> - 3.1.1-1
|
||||
- Resolves: #1928398, rebase to 3.1.1 for Ansible Collections
|
||||
|
||||
* Fri Mar 05 2021 Than Ngo <than@redhat.com> - 3.0.1-4
|
||||
- fixed issue #130 in sap-preconfigure
|
||||
- fixed typos in README.md in sap_hana_preconfigure
|
||||
|
Loading…
Reference in New Issue
Block a user