Resolves: #2003630, Pepare the roles for ansible-core 2.11: Only use ansible.core modules
This commit is contained in:
parent
c338955d01
commit
4e1f97187d
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,3 +9,6 @@
|
||||
/README.md
|
||||
/sap-hana-preconfigure-9f22b540bc41e2d10fbc1250b36a7ef08129feb2.tar.gz
|
||||
/sap-preconfigure-9bed558b55cedc8939f6b3d4436436a6aaaf095c.tar.gz
|
||||
/sap-hana-preconfigure-a53a244c4e774e17cf427b51d7be36336fd21a7f.tar.gz
|
||||
/sap-netweaver-preconfigure-32d59f5c419b0a9997207e2e11cb215b5e616250.tar.gz
|
||||
/sap-preconfigure-108c1d7f754debc58e1e29bb72c3dcb11e3721b0.tar.gz
|
||||
|
@ -24,18 +24,20 @@
|
||||
%endif
|
||||
|
||||
%global mainid ec364d2e0bd422b69f34871a1188114f368097a0
|
||||
%global gitcommit_sap 9bed558b55cedc8939f6b3d4436436a6aaaf095c
|
||||
%global gitcommit_sap_hana 9f22b540bc41e2d10fbc1250b36a7ef08129feb2
|
||||
%global gitcommit_sap_netweaver 337ba5580ba862e1adac59dcda8a126cdf561225
|
||||
%global gitcommit_sap 108c1d7f754debc58e1e29bb72c3dcb11e3721b0
|
||||
%global gitcommit_sap_hana a53a244c4e774e17cf427b51d7be36336fd21a7f
|
||||
%global gitcommit_sap_netweaver 32d59f5c419b0a9997207e2e11cb215b5e616250
|
||||
%global rolename1 sap-preconfigure
|
||||
%global rolename2 sap-hana-preconfigure
|
||||
%global rolename3 sap-netweaver-preconfigure
|
||||
%global src_owner linux-system-roles
|
||||
|
||||
%define irelease 12
|
||||
|
||||
Name: %{package_name}
|
||||
Summary: System Roles to configure RHEL for running SAP NetWeaver- or SAP HANA-based products
|
||||
Version: 3.1.1
|
||||
Release: 11%{?dist}
|
||||
Release: %{irelease}%{?dist}
|
||||
License: GPLv3+
|
||||
Url: https://github.com/berndfinger
|
||||
Source0: https://github.com/linux-system-roles/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
|
||||
@ -45,16 +47,8 @@ Source3: https://github.com/berndfinger/sap-netweaver-preconfigure/archive/%{git
|
||||
Source4: README.md
|
||||
Source5: galaxy.yml
|
||||
# patches 0-49 for sap-preconfigure
|
||||
Patch1: sap-preconfigure-69de334fecbce65506bbea15b1b9bcd643528352.patch
|
||||
Patch2: sap-preconfigure-fa66c6722c0bf31c651c1d63972d9a32b9218ccf.patch
|
||||
Patch3: sap-preconfigure-62908fd7a79a4ef0d38ce2e48bca5970eb0f2304.patch
|
||||
# patches 50-99 for sap-hana-preconfigure
|
||||
Patch50: sap-hana-preconfigure-md2html-error.patch
|
||||
Patch51: sap-hana-preconfigure-f30be1952fe55cc4a5e153bfd13863f527643d40.patch
|
||||
Patch52: sap-hana-preconfigure-61b366bb366f1dca0684d00f7cbf4563f71630e6.patch
|
||||
Patch53: sap-hana-preconfigure-2557f321ab86bba4cbf463eaf69df8d1bb3a2261.patch
|
||||
# patches 100-149 for sap-netweaver-preconfigur
|
||||
Patch100: sap-netweaver-preconfigure-rhel9.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -109,7 +103,7 @@ Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{vers
|
||||
# Simply copy everything instead of galaxy-installing the built artifact.
|
||||
%define ansible_collection_install() mkdir -p %{buildroot}%{ansible_collection_files}; cp -a . %{buildroot}%{ansible_collection_files}/%{collection_name}/
|
||||
%else
|
||||
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
||||
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}-%{irelease}.tar.gz
|
||||
%endif
|
||||
%endif
|
||||
|
||||
@ -136,22 +130,9 @@ mv sap-netweaver-preconfigure-%{gitcommit_sap_netweaver} sap-netweaver-preconfig
|
||||
# cp own galaxy.yml and rename the collection name correctly for Automation Hub and Galaxy
|
||||
mkdir .collections
|
||||
cp %{SOURCE5} galaxy.yml
|
||||
sed -i -e 's|name: rhel|name: %{collection_name}|' galaxy.yml
|
||||
|
||||
pushd sap-preconfigure
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
popd
|
||||
pushd sap-hana-preconfigure
|
||||
%patch50 -p1
|
||||
%patch51 -p1
|
||||
%patch52 -p1
|
||||
%patch53 -p1
|
||||
popd
|
||||
pushd sap-netweaver-preconfigure
|
||||
%patch100 -p1
|
||||
popd
|
||||
sed -i -e "s|name: rhel|name: %{collection_name}|" galaxy.yml
|
||||
# add correct version for Automation Hub and Galaxy
|
||||
sed -i -e "s|version: 3.1.1|version: %{version}-%{irelease}|" galaxy.yml
|
||||
|
||||
# remove git stuff
|
||||
rm -rf *-preconfigure/.git*
|
||||
@ -253,10 +234,13 @@ popd
|
||||
|
||||
%if %{with collection_artifact}
|
||||
%files collection-artifact
|
||||
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
||||
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{version}-%{irelease}.tar.gz
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Oct 15 2021 Than Ngo <than@redhat.com> - 3.1.1-12
|
||||
- Resolves: #2003630, Pepare the roles for ansible-core 2.11: Only use ansible.core modules
|
||||
|
||||
* Wed Sep 01 2021 Than Ngo <than@redhat.com> - 3.1.1-11
|
||||
- fix yum group install errors on RHEL 7
|
||||
- use grubby for setting tsx=on
|
||||
|
@ -1,63 +0,0 @@
|
||||
commit 2557f321ab86bba4cbf463eaf69df8d1bb3a2261
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Mon Sep 6 09:26:10 2021 +0200
|
||||
|
||||
use grubby for setting tsx=on; set min kernel version for RHEL 8.4 x86_64
|
||||
|
||||
diff --git a/handlers/main.yml b/handlers/main.yml
|
||||
index 0d81021..8387bc7 100644
|
||||
--- a/handlers/main.yml
|
||||
+++ b/handlers/main.yml
|
||||
@@ -49,6 +49,12 @@
|
||||
- __sap_hana_preconfigure_register_stat_sys_firmware_efi.stat.exists
|
||||
- sap_hana_preconfigure_run_grub2_mkconfig|d(true)
|
||||
|
||||
+- name: "Run grubby"
|
||||
+ command: grubby --args="tsx=on" --update-kernel=ALL
|
||||
+ register: __sap_hana_preconfigure_register_grubby_update
|
||||
+ listen: __sap_hana_preconfigure_grubby_update_handler
|
||||
+ notify: __sap_hana_preconfigure_reboot_handler
|
||||
+
|
||||
- name: Reboot the managed node
|
||||
reboot:
|
||||
test_command: /bin/true
|
||||
diff --git a/tasks/RedHat/generic/enable-tsx.yml b/tasks/RedHat/generic/enable-tsx.yml
|
||||
index c4be81c..09b87d3 100644
|
||||
--- a/tasks/RedHat/generic/enable-tsx.yml
|
||||
+++ b/tasks/RedHat/generic/enable-tsx.yml
|
||||
@@ -4,21 +4,11 @@
|
||||
msg: "imported RedHat/generic/enable-tsx.yml"
|
||||
|
||||
- name: Enable TSX at boot time
|
||||
- lineinfile:
|
||||
- path: /etc/default/grub
|
||||
- backup: yes
|
||||
- backrefs: yes
|
||||
- state: present
|
||||
- regexp: '^(GRUB_CMDLINE_LINUX=(?!.* {{ line_item }}).*). *$'
|
||||
- line: "\\1 {{ line_item }}\""
|
||||
- with_items:
|
||||
- - "tsx=on"
|
||||
- notify: __sap_hana_preconfigure_regenerate_grub2_conf_handler
|
||||
+ command: /bin/true
|
||||
+ notify: __sap_hana_preconfigure_grubby_update_handler
|
||||
when:
|
||||
- ansible_architecture == 'x86_64'
|
||||
- ansible_distribution == 'RedHat'
|
||||
- ansible_distribution_major_version == '8'
|
||||
- __sap_hana_preconfigure_fact_ansible_distribution_minor_version >= '3'
|
||||
tags: grubconfig
|
||||
- loop_control:
|
||||
- loop_var: line_item
|
||||
diff --git a/vars/RedHat_8.yml b/vars/RedHat_8.yml
|
||||
index 29efc7a..dd77300 100644
|
||||
--- a/vars/RedHat_8.yml
|
||||
+++ b/vars/RedHat_8.yml
|
||||
@@ -135,6 +135,7 @@ __sap_hana_preconfigure_min_packages_8_3_x86_64:
|
||||
__sap_hana_preconfigure_min_packages_8_3_ppc64le:
|
||||
|
||||
__sap_hana_preconfigure_min_packages_8_4_x86_64:
|
||||
+ - [ 'kernel' , '4.18.0-305.3.1.el8_4' ]
|
||||
|
||||
__sap_hana_preconfigure_min_packages_8_4_ppc64le:
|
||||
|
@ -1,36 +0,0 @@
|
||||
commit 61b366bb366f1dca0684d00f7cbf4563f71630e6
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Fri Sep 3 12:16:35 2021 +0200
|
||||
|
||||
add tsx=on to the kernel command line unconditionally
|
||||
|
||||
diff --git a/tasks/RedHat/generic/enable-tsx.yml b/tasks/RedHat/generic/enable-tsx.yml
|
||||
index 3dd6d09..c4be81c 100644
|
||||
--- a/tasks/RedHat/generic/enable-tsx.yml
|
||||
+++ b/tasks/RedHat/generic/enable-tsx.yml
|
||||
@@ -3,16 +3,7 @@
|
||||
- debug:
|
||||
msg: "imported RedHat/generic/enable-tsx.yml"
|
||||
|
||||
-- name: Get the CPU flags
|
||||
- shell: lscpu | grep "^Flags"
|
||||
- register: __sap_hana_preconfigure_register_lscpu
|
||||
- when:
|
||||
- - ansible_architecture == 'x86_64'
|
||||
- - ansible_distribution == 'RedHat'
|
||||
- - ansible_distribution_major_version == '8'
|
||||
- - __sap_hana_preconfigure_fact_ansible_distribution_minor_version >= '3'
|
||||
-
|
||||
-- name: Enable TSX at boot time if CPU flag rtm is not present
|
||||
+- name: Enable TSX at boot time
|
||||
lineinfile:
|
||||
path: /etc/default/grub
|
||||
backup: yes
|
||||
@@ -28,7 +19,6 @@
|
||||
- ansible_distribution == 'RedHat'
|
||||
- ansible_distribution_major_version == '8'
|
||||
- __sap_hana_preconfigure_fact_ansible_distribution_minor_version >= '3'
|
||||
- - not ' rtm' in __sap_hana_preconfigure_register_lscpu.stdout
|
||||
tags: grubconfig
|
||||
loop_control:
|
||||
loop_var: line_item
|
@ -1,185 +0,0 @@
|
||||
commit f30be1952fe55cc4a5e153bfd13863f527643d40
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Wed Aug 11 21:38:45 2021 +0200
|
||||
|
||||
Solve issues #177, #193, and #194.
|
||||
|
||||
diff --git a/tasks/RedHat/generic/assert-tsx.yml b/tasks/RedHat/generic/assert-tsx.yml
|
||||
index 4ace64c..d7da1d2 100644
|
||||
--- a/tasks/RedHat/generic/assert-tsx.yml
|
||||
+++ b/tasks/RedHat/generic/assert-tsx.yml
|
||||
@@ -4,6 +4,24 @@
|
||||
msg: "imported RedHat/generic/assert-tsx.yml"
|
||||
|
||||
- block:
|
||||
+# There are CPUs which are not capable of enabling the rtm flag, so we just report the status:
|
||||
+ - name: Get all CPU flags
|
||||
+ shell: lscpu | grep "^Flags:"
|
||||
+ register: __sap_hana_preconfigure_register_lscpu_flags
|
||||
+ changed_when: no
|
||||
+
|
||||
+ - name: Report that the rtm CPU flag exists
|
||||
+ debug:
|
||||
+ msg: "INFO: The CPU flags contain ' rtm'."
|
||||
+ when: "' rtm' in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
+
|
||||
+ - name: Report that the rtm CPU flag does not exist
|
||||
+ debug:
|
||||
+ msg: "INFO: The CPU flags do not contain ' rtm'."
|
||||
+ when: "' rtm' not in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
+
|
||||
+# Note: Assertions are only necessary if rtm is not in the CPU flags.
|
||||
+# If rtm is present, we just print an INFO message.
|
||||
- name: Get contents of GRUB_CMDLINE_LINUX in /etc/default/grub
|
||||
command: grep GRUB_CMDLINE_LINUX /etc/default/grub
|
||||
register: __sap_hana_preconfigure_register_default_grub_cmdline_tsx_assert
|
||||
@@ -15,6 +33,21 @@
|
||||
fail_msg: "FAIL: 'tsx=on' is not in GRUB_CMDLINE_LINUX in /etc/default/grub!"
|
||||
success_msg: "PASS: 'tsx=on' is in GRUB_CMDLINE_LINUX in /etc/default/grub."
|
||||
ignore_errors: "{{ sap_hana_preconfigure_assert_ignore_errors|d(false) }}"
|
||||
+ when: "' rtm' not in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
+
|
||||
+ - name: Report if tsx=on is in GRUB_CMDLINE_LINUX in /etc/default/grub
|
||||
+ debug:
|
||||
+ msg: "INFO: 'tsx=on' is in GRUB_CMDLINE_LINUX in /etc/default/grub."
|
||||
+ when:
|
||||
+ - "'tsx=on' in __sap_hana_preconfigure_register_default_grub_cmdline_tsx_assert.stdout"
|
||||
+ - "' rtm' in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
+
|
||||
+ - name: Report if tsx=on is not in GRUB_CMDLINE_LINUX in /etc/default/grub
|
||||
+ debug:
|
||||
+ msg: "INFO: 'tsx=on' is not in GRUB_CMDLINE_LINUX in /etc/default/grub."
|
||||
+ when:
|
||||
+ - "'tsx=on' not in __sap_hana_preconfigure_register_default_grub_cmdline_tsx_assert.stdout"
|
||||
+ - "' rtm' in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
|
||||
- name: Get contents of /proc/cmdline
|
||||
command: cat /proc/cmdline
|
||||
@@ -27,20 +60,21 @@
|
||||
fail_msg: "FAIL: 'tsx=on' is not in /proc/cmdline!"
|
||||
success_msg: "PASS: 'tsx=on' is in /proc/cmdline."
|
||||
ignore_errors: "{{ sap_hana_preconfigure_assert_ignore_errors|d(false) }}"
|
||||
+ when: "' rtm' not in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
|
||||
-# We are counting the number of cpuinfo lines which contain "flags" and subtracting those lines
|
||||
-# which contain "flags" and " rtm ". If the result is 0, all CPUs contain flag "rtm".
|
||||
- - name: Get rtm status of all CPUs
|
||||
- shell: awk '$1=="flags"{n++}$1=="flags"&&$0~" rtm" {a++}END{print n-a}' /proc/cpuinfo
|
||||
- register: __sap_hana_preconfigure_register_cpuinfo_flags_contain_rtm
|
||||
- changed_when: no
|
||||
+ - name: Report if tsx=on is in /proc/cmdline
|
||||
+ debug:
|
||||
+ msg: "INFO: 'tsx=on' is in /proc/cmdline."
|
||||
+ when:
|
||||
+ - "'tsx=on' in __sap_hana_preconfigure_register_proc_cmdline_tsx_assert.stdout"
|
||||
+ - "' rtm' in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
|
||||
- - name: Assert that all CPUs contain flag rtm
|
||||
- assert:
|
||||
- that: "__sap_hana_preconfigure_register_cpuinfo_flags_contain_rtm.stdout == '0'"
|
||||
- fail_msg: "FAIL: At least one of the CPUs does not contain flag 'rtm'!"
|
||||
- success_msg: "PASS: All CPUs contain flag 'rtm'."
|
||||
- ignore_errors: "{{ sap_hana_preconfigure_assert_ignore_errors|d(false) }}"
|
||||
+ - name: Report if tsx=on is not in /proc/cmdline
|
||||
+ debug:
|
||||
+ msg: "INFO: 'tsx=on' is not in /proc/cmdline."
|
||||
+ when:
|
||||
+ - "'tsx=on' not in __sap_hana_preconfigure_register_proc_cmdline_tsx_assert.stdout"
|
||||
+ - "' rtm' in __sap_hana_preconfigure_register_lscpu_flags.stdout"
|
||||
|
||||
when: ansible_architecture == 'x86_64' and
|
||||
ansible_distribution == 'RedHat' and
|
||||
diff --git a/tasks/RedHat/generic/enable-tsx.yml b/tasks/RedHat/generic/enable-tsx.yml
|
||||
index 879f0bf..3dd6d09 100644
|
||||
--- a/tasks/RedHat/generic/enable-tsx.yml
|
||||
+++ b/tasks/RedHat/generic/enable-tsx.yml
|
||||
@@ -3,7 +3,16 @@
|
||||
- debug:
|
||||
msg: "imported RedHat/generic/enable-tsx.yml"
|
||||
|
||||
-- name: Enable TSX at boot time
|
||||
+- name: Get the CPU flags
|
||||
+ shell: lscpu | grep "^Flags"
|
||||
+ register: __sap_hana_preconfigure_register_lscpu
|
||||
+ when:
|
||||
+ - ansible_architecture == 'x86_64'
|
||||
+ - ansible_distribution == 'RedHat'
|
||||
+ - ansible_distribution_major_version == '8'
|
||||
+ - __sap_hana_preconfigure_fact_ansible_distribution_minor_version >= '3'
|
||||
+
|
||||
+- name: Enable TSX at boot time if CPU flag rtm is not present
|
||||
lineinfile:
|
||||
path: /etc/default/grub
|
||||
backup: yes
|
||||
@@ -14,10 +23,12 @@
|
||||
with_items:
|
||||
- "tsx=on"
|
||||
notify: __sap_hana_preconfigure_regenerate_grub2_conf_handler
|
||||
- when: ansible_architecture == 'x86_64' and
|
||||
- ansible_distribution == 'RedHat' and
|
||||
- ansible_distribution_major_version == '8' and
|
||||
- __sap_hana_preconfigure_fact_ansible_distribution_minor_version >= '3'
|
||||
+ when:
|
||||
+ - ansible_architecture == 'x86_64'
|
||||
+ - ansible_distribution == 'RedHat'
|
||||
+ - ansible_distribution_major_version == '8'
|
||||
+ - __sap_hana_preconfigure_fact_ansible_distribution_minor_version >= '3'
|
||||
+ - not ' rtm' in __sap_hana_preconfigure_register_lscpu.stdout
|
||||
tags: grubconfig
|
||||
loop_control:
|
||||
loop_var: line_item
|
||||
diff --git a/tasks/RedHat/installation.yml b/tasks/RedHat/installation.yml
|
||||
index fabeaac..a5bdb94 100644
|
||||
--- a/tasks/RedHat/installation.yml
|
||||
+++ b/tasks/RedHat/installation.yml
|
||||
@@ -63,22 +63,19 @@
|
||||
- ansible_architecture == "ppc64le"
|
||||
- sap_hana_preconfigure_add_ibm_power_repo|d(true)
|
||||
|
||||
-- name: Accept the license for the IBM tools
|
||||
- shell: |
|
||||
- MORE=+1000 /opt/ibm/lop/configure <<-EOF
|
||||
- y
|
||||
- EOF
|
||||
+- name: Accept the license for the IBM Service and Productivity Tools
|
||||
+ shell: LESS=+q /opt/ibm/lop/configure <<<'y'
|
||||
when:
|
||||
- ansible_architecture == "ppc64le"
|
||||
- sap_hana_preconfigure_add_ibm_power_repo|d(true)
|
||||
|
||||
-- name: Install IBM tools
|
||||
+- name: Install the IBM Service and Productivity Tools
|
||||
package:
|
||||
state: latest
|
||||
name: "{{ __sap_hana_preconfigure_required_ppc64le }}"
|
||||
when: ansible_architecture == "ppc64le"
|
||||
|
||||
-- name: Get status of installed IBM tools
|
||||
+- name: Get the status of installed IBM Service and Productivity Tools
|
||||
yum:
|
||||
name: "{{ __sap_hana_preconfigure_required_ppc64le }}"
|
||||
register: __sap_hana_preconfigure_register_required_ppc64le_packages
|
||||
diff --git a/tasks/sapnote/2055470.yml b/tasks/sapnote/2055470.yml
|
||||
index 5efbd6d..697913c 100644
|
||||
--- a/tasks/sapnote/2055470.yml
|
||||
+++ b/tasks/sapnote/2055470.yml
|
||||
@@ -32,7 +32,7 @@
|
||||
loop_var: line_item
|
||||
|
||||
## This only works if interfacename=device name, otherwise it fails
|
||||
-- name: add largesend options to interface
|
||||
+- name: Add largesend options to interfaces
|
||||
lineinfile:
|
||||
regexp: '^ETHTOOL_OPTIONS_tso='
|
||||
line: ETHTOOL_OPTIONS_tso='-K iface tso on'
|
||||
@@ -45,8 +45,9 @@
|
||||
)
|
||||
loop_control:
|
||||
loop_var: line_item
|
||||
+ ignore_errors: true
|
||||
|
||||
-- name: Add largesend parameters for ppc64le
|
||||
+- name: Add largesend kernel parameters for ppc64le
|
||||
sysctl:
|
||||
sysctl_file: /etc/sysctl.d/ibm_largesend.conf
|
||||
name: "{{ line_item.name }}"
|
@ -1,57 +0,0 @@
|
||||
diff -up sap-netweaver-preconfigure/tasks/main.yml.me sap-netweaver-preconfigure/tasks/main.yml
|
||||
--- sap-netweaver-preconfigure/tasks/main.yml.me 2021-07-16 20:47:31.917915614 +0200
|
||||
+++ sap-netweaver-preconfigure/tasks/main.yml 2021-07-16 20:49:14.545505014 +0200
|
||||
@@ -7,7 +7,7 @@
|
||||
- name: Include os specific vars
|
||||
include_vars: '{{ item }}'
|
||||
with_first_found:
|
||||
- - '{{ ansible_distibution }}_{{ ansible_distribution_version }}.yml'
|
||||
+ - '{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml'
|
||||
- '{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml'
|
||||
- '{{ ansible_os_family }}.yml'
|
||||
|
||||
diff -up sap-netweaver-preconfigure/vars/RedHat_9.yml.me sap-netweaver-preconfigure/vars/RedHat_9.yml
|
||||
--- sap-netweaver-preconfigure/vars/RedHat_9.yml.me 2021-07-16 20:47:58.990334885 +0200
|
||||
+++ sap-netweaver-preconfigure/vars/RedHat_9.yml 2021-07-16 20:48:15.158585284 +0200
|
||||
@@ -0,0 +1,41 @@
|
||||
+---
|
||||
+
|
||||
+# vars file for sap-netweaver-preconfigure
|
||||
+
|
||||
+__sap_netweaver_preconfigure_sapnotes:
|
||||
+ - "2526952"
|
||||
+
|
||||
+__sap_netweaver_preconfigure_packages:
|
||||
+ - tuned-profiles-sap
|
||||
+
|
||||
+__sap_netweaver_preconfigure_min_swap_space_mb: '20480'
|
||||
+
|
||||
+__sap_netweaver_preconfigure_adobe_doc_services_packages:
|
||||
+ - autoconf.noarch
|
||||
+ - automake.noarch
|
||||
+ - cyrus-sasl.x86_64
|
||||
+ - expat.x86_64
|
||||
+ - fontconfig.x86_64
|
||||
+ - glibc-devel.i686
|
||||
+ - keyutils-libs.x86_64
|
||||
+ - krb5-libs.x86_64
|
||||
+ - libcom_err.x86_64
|
||||
+ - libidn2.x86_64
|
||||
+ - libselinux.x86_64
|
||||
+ - libssh2.x86_64
|
||||
+ - libxcb.i686
|
||||
+ - nspr.x86_64
|
||||
+ - nss.x86_64
|
||||
+ - nss-softokn.x86_64
|
||||
+ - nss-softokn-freebl.x86_64
|
||||
+ - nss-util.x86_64
|
||||
+ - openldap.x86_64
|
||||
+ - openssl.x86_64
|
||||
+ - zlib.x86_64
|
||||
+ - libstdc++.i686
|
||||
+ - libX11.i686
|
||||
+ - libXau.i686
|
||||
+ - glibc.i686
|
||||
+ - libstdc++.i686
|
||||
+ - libgcc.i686
|
||||
+ - libuuid.i686
|
@ -1,31 +0,0 @@
|
||||
commit 62908fd7a79a4ef0d38ce2e48bca5970eb0f2304
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Tue Aug 31 16:38:13 2021 +0200
|
||||
|
||||
fix yum group install errors on RHEL 7
|
||||
|
||||
diff --git a/tasks/installation.yml b/tasks/installation.yml
|
||||
index ac63e9f..3ff6ef4 100644
|
||||
--- a/tasks/installation.yml
|
||||
+++ b/tasks/installation.yml
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Ensure required package groups are installed, RHEL 7
|
||||
- command: yum install "{{ sap_preconfigure_packagegroups|join('')|quote }}" -y
|
||||
+ command: "yum install {{ sap_preconfigure_packagegroups|join(' ') }} -y"
|
||||
args:
|
||||
warn: false
|
||||
register: __sap_preconfigure_register_yum_group_install
|
||||
@@ -9,9 +9,9 @@
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution_major_version == '7'
|
||||
|
||||
-- name: Ensure required package groups are installed, RHEL 8 and later
|
||||
+- name: Ensure required package groups are installed, RHEL 8 and RHEL 9
|
||||
# Note: We want to avoid unwanted package upgrades, see bug 1983749.
|
||||
- command: yum install "{{ sap_preconfigure_packagegroups|join('')|quote }}" --nobest --exclude="kernel*" -y
|
||||
+ command: "yum install {{ sap_preconfigure_packagegroups|join(' ') }} --nobest --exclude=kernel* -y"
|
||||
args:
|
||||
warn: false
|
||||
register: __sap_preconfigure_register_yum_group_install
|
@ -1,29 +0,0 @@
|
||||
commit 69de334fecbce65506bbea15b1b9bcd643528352
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Wed Aug 11 21:50:14 2021 +0200
|
||||
|
||||
Solve issue #149
|
||||
|
||||
diff --git a/tasks/installation.yml b/tasks/installation.yml
|
||||
index 7dbab15..096c993 100644
|
||||
--- a/tasks/installation.yml
|
||||
+++ b/tasks/installation.yml
|
||||
@@ -1,9 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Ensure required package groups are installed
|
||||
- package:
|
||||
- state: present
|
||||
- name: "{{ sap_preconfigure_packagegroups }}"
|
||||
+# Note: We cannot use the package module here as this will do a default group install,
|
||||
+# which could lead to unwanted package upgrades. See bug 1983749.
|
||||
+ command: yum install "{{ sap_preconfigure_packagegroups|join('')|quote }}" --nobest --exclude="kernel*" -y
|
||||
+ args:
|
||||
+ warn: false
|
||||
+ register: __sap_preconfigure_register_yum_group_install
|
||||
+
|
||||
+- debug:
|
||||
+ var: __sap_preconfigure_register_yum_group_install
|
||||
|
||||
- name: Ensure required packages are installed
|
||||
package:
|
@ -1,39 +0,0 @@
|
||||
commit fa66c6722c0bf31c651c1d63972d9a32b9218ccf
|
||||
Author: Bernd Finger <bfinger@redhat.com>
|
||||
Date: Mon Aug 30 22:10:49 2021 +0200
|
||||
|
||||
do not use yum option "--nobest" on RHEL 7
|
||||
|
||||
diff --git a/tasks/installation.yml b/tasks/installation.yml
|
||||
index 096c993..ac63e9f 100644
|
||||
--- a/tasks/installation.yml
|
||||
+++ b/tasks/installation.yml
|
||||
@@ -1,12 +1,25 @@
|
||||
---
|
||||
|
||||
-- name: Ensure required package groups are installed
|
||||
-# Note: We cannot use the package module here as this will do a default group install,
|
||||
-# which could lead to unwanted package upgrades. See bug 1983749.
|
||||
+- name: Ensure required package groups are installed, RHEL 7
|
||||
+ command: yum install "{{ sap_preconfigure_packagegroups|join('')|quote }}" -y
|
||||
+ args:
|
||||
+ warn: false
|
||||
+ register: __sap_preconfigure_register_yum_group_install
|
||||
+ when:
|
||||
+ - ansible_os_family == 'RedHat'
|
||||
+ - ansible_distribution_major_version == '7'
|
||||
+
|
||||
+- name: Ensure required package groups are installed, RHEL 8 and later
|
||||
+# Note: We want to avoid unwanted package upgrades, see bug 1983749.
|
||||
command: yum install "{{ sap_preconfigure_packagegroups|join('')|quote }}" --nobest --exclude="kernel*" -y
|
||||
args:
|
||||
warn: false
|
||||
register: __sap_preconfigure_register_yum_group_install
|
||||
+ when:
|
||||
+ - ansible_os_family == 'RedHat'
|
||||
+ - (ansible_distribution_major_version == '8' or
|
||||
+ ansible_distribution_major_version == '9'
|
||||
+ )
|
||||
|
||||
- debug:
|
||||
var: __sap_preconfigure_register_yum_group_install
|
6
sources
6
sources
@ -1,6 +1,6 @@
|
||||
SHA512 (auto-maintenance-ec364d2e0bd422b69f34871a1188114f368097a0.tar.gz) = 5cbbd64ccb77c8ecd9cf20eb55747fc51e539692bc20d746ecf63345b64dda5cddb3e6f1c69f684495247e329f2930f46147c8fcd851e5a47fd27471cb5ec0b5
|
||||
SHA512 (sap-netweaver-preconfigure-337ba5580ba862e1adac59dcda8a126cdf561225.tar.gz) = df2480591acc2933e7603006e4e6e309c6ff74efc21ab329a1094a0c84bbfe65de797d8f878ef43e5dbeee6eb5d029ac7cd528a75ba871cc83939c865b7042ac
|
||||
SHA512 (galaxy.yml) = 6fb23d6100e2ad9c19dc4b2baa671a1f7cb9516a86601e79dcebf5a479c21d212c95a5b86b620c61114d3248a0e676b81e68f8980a621eebd87b8cef97662cb6
|
||||
SHA512 (README.md) = ef4fc905c824b1701e27543f7335584406f35873c34915b2aa355a73b8b469d2b7d9d33722769403451f5d7d78127cbb87bfb4f0ae56fdfafe3fc26cc1a44af2
|
||||
SHA512 (sap-hana-preconfigure-9f22b540bc41e2d10fbc1250b36a7ef08129feb2.tar.gz) = 804303b4bfcd5c9d34a1d94730b2e2d9d86eb71d923d0ba3b3fc039e3482dcc475853ce1401e53e55853b69f61f81d09d44e9bbebcbf0793f3ab4ed6fe676158
|
||||
SHA512 (sap-preconfigure-9bed558b55cedc8939f6b3d4436436a6aaaf095c.tar.gz) = fde5e807bda9f3fb2b613ec608768eaa1d3322674996ed6a76595ad7da220bacaa892ea8ec027faac59ece48f1fcba06235c773cb2735c3765c828448c60b626
|
||||
SHA512 (sap-hana-preconfigure-a53a244c4e774e17cf427b51d7be36336fd21a7f.tar.gz) = 3ddb9ef2940a0f0f349e76758eab0a652a31954eb34c9b2c42013960850b9928e72f4f291b760982ea5a341f5178583437a7f7e1c97a36ec62950ef399249d07
|
||||
SHA512 (sap-netweaver-preconfigure-32d59f5c419b0a9997207e2e11cb215b5e616250.tar.gz) = 97336c8369b3c94bd2215d4a4d0d82847699195d95083660f77fe12ab430ca551e4ad219af80019028d909cd86ae54f99a05b0bd67b9c9214997b311035bbb95
|
||||
SHA512 (sap-preconfigure-108c1d7f754debc58e1e29bb72c3dcb11e3721b0.tar.gz) = 30ccb075232f4c1116246aa904e02eabe85fa62e4f789cf0db4ff40a1d7876690d0b3cca0423212362b925193635a23520894c6c91563c6a0002023fddcc1c0d
|
||||
|
Loading…
Reference in New Issue
Block a user