Skip to content

Commit e2c2e92

Browse files
authored
Merge pull request #1065 from sap-linuxlab/dev
Merge dev to main for release 1.6.0
2 parents 8a89687 + 63c3d54 commit e2c2e92

File tree

61 files changed

+851
-220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+851
-220
lines changed

CHANGELOG.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,43 @@ community.sap\_install Release Notes
44

55
.. contents:: Topics
66

7+
v1.6.0
8+
======
9+
10+
Release Summary
11+
---------------
12+
13+
Various improvements and bug fixes
14+
15+
Minor Changes
16+
-------------
17+
18+
- New Feature - sap_anydb_install_oracle - Add handling of OS specific vars (https://github.com/sap-linuxlab/community.sap_install/pull/1033)
19+
- New Feature - sap_ha_pacemaker_cluster - SLES16 support, new vars for ha_cluster for corosync and zypper patterns (https://github.com/sap-linuxlab/community.sap_install/pull/1056)
20+
- New Feature - sap_storage_setup - Allow /software NFS mount (https://github.com/sap-linuxlab/community.sap_install/pull/1029)
21+
- sap_*_preconfigure - Add missing RHEL 10.x vars (https://github.com/sap-linuxlab/community.sap_install/pull/1059)
22+
- sap_general_preconfigure - Modify the kernel command line for SELinux also for RHEL 10 (https://github.com/sap-linuxlab/community.sap_install/pull/1036)
23+
- sap_general_preconfigure - Use the correct sap.conf file for RHEL 10 (https://github.com/sap-linuxlab/community.sap_install/pull/1022)
24+
- sap_ha_pacemaker_cluster/SUSE - SAP HANA scaleup post steps updated (https://github.com/sap-linuxlab/community.sap_install/pull/1061)
25+
- sap_hana_install - Add opt-out for setting sidadm to noexpire (https://github.com/sap-linuxlab/community.sap_install/pull/1016)
26+
- sap_swpm - Add opt-out for setting sidadm to noexpire (https://github.com/sap-linuxlab/community.sap_install/pull/1018)
27+
28+
Bugfixes
29+
--------
30+
31+
- Collection - fix documentation link in galaxy.yml (https://github.com/sap-linuxlab/community.sap_install/pull/1009)
32+
- sap_*_preconfigure - Make SELinux booleans persistent (https://github.com/sap-linuxlab/community.sap_install/pull/1013)
33+
- sap_*_preconfigure/SUSE - Add retry attempts to zypper pattern installation (https://github.com/sap-linuxlab/community.sap_install/pull/1032)
34+
- sap_*_preconfigure/SUSE - Update SLES16 pattern names and add packages for hardened images (https://github.com/sap-linuxlab/community.sap_install/pull/1057)
35+
- sap_ha_pacemaker_cluster/SUSE - Remove python3-rpm dependency in pre_steps_hana (https://github.com/sap-linuxlab/community.sap_install/pull/1028)
36+
- sap_hana_install - update README.md with Local Secure Store (LSS) installation details and examples (https://github.com/sap-linuxlab/community.sap_install/pull/1008)
37+
- sap_maintain_etc_hosts - Resolve situation with empty domain, but not undefined (https://github.com/sap-linuxlab/community.sap_install/pull/1044)
38+
- sap_swpm - Ensure sap_swpm_product_catalog_id is a string (https://github.com/sap-linuxlab/community.sap_install/pull/1035)
39+
- sap_swpm - Fix TEMP handling (https://github.com/sap-linuxlab/community.sap_install/pull/1019)
40+
- sap_swpm - Remove selinux role dependency from README.md (https://github.com/sap-linuxlab/community.sap_install/pull/1012)
41+
- sap_swpm - Require inifile.params only on the managed node when reusing an existing inifile.params. (https://github.com/sap-linuxlab/community.sap_install/pull/1024)
42+
- sap_swpm - Sanitize hostname length (https://github.com/sap-linuxlab/community.sap_install/pull/1042)
43+
744
v1.5.3
845
======
946

changelogs/changelog.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,30 @@ releases:
305305
- sap_swpm - Fix link in README.md (https://github.com/sap-linuxlab/community.sap_install/pull/970)
306306
- sap_swpm - removed duplicates from credentials_hana section (https://github.com/sap-linuxlab/community.sap_install/pull/982)
307307
- sap_swpm - remove duplicate section credentials_anydb_ibmdb2 (https://github.com/sap-linuxlab/community.sap_install/pull/995)
308+
1.6.0:
309+
release_date: '2025-07-03'
310+
changes:
311+
release_summary: Various improvements and bug fixes
312+
minor_changes:
313+
- New Feature - sap_anydb_install_oracle - Add handling of OS specific vars (https://github.com/sap-linuxlab/community.sap_install/pull/1033)
314+
- New Feature - sap_ha_pacemaker_cluster - SLES16 support, new vars for ha_cluster for corosync and zypper patterns (https://github.com/sap-linuxlab/community.sap_install/pull/1056)
315+
- New Feature - sap_storage_setup - Allow /software NFS mount (https://github.com/sap-linuxlab/community.sap_install/pull/1029)
316+
- sap_*_preconfigure - Add missing RHEL 10.x vars (https://github.com/sap-linuxlab/community.sap_install/pull/1059)
317+
- sap_general_preconfigure - Modify the kernel command line for SELinux also for RHEL 10 (https://github.com/sap-linuxlab/community.sap_install/pull/1036)
318+
- sap_general_preconfigure - Use the correct sap.conf file for RHEL 10 (https://github.com/sap-linuxlab/community.sap_install/pull/1022)
319+
- sap_hana_install - Add opt-out for setting sidadm to noexpire (https://github.com/sap-linuxlab/community.sap_install/pull/1016)
320+
- sap_swpm - Add opt-out for setting sidadm to noexpire (https://github.com/sap-linuxlab/community.sap_install/pull/1018)
321+
- sap_ha_pacemaker_cluster/SUSE - SAP HANA scaleup post steps updated (https://github.com/sap-linuxlab/community.sap_install/pull/1061)
322+
bugfixes:
323+
- Collection - fix documentation link in galaxy.yml (https://github.com/sap-linuxlab/community.sap_install/pull/1009)
324+
- sap_maintain_etc_hosts - Resolve situation with empty domain, but not undefined (https://github.com/sap-linuxlab/community.sap_install/pull/1044)
325+
- sap_*_preconfigure - Make SELinux booleans persistent (https://github.com/sap-linuxlab/community.sap_install/pull/1013)
326+
- sap_*_preconfigure/SUSE - Update SLES16 pattern names and add packages for hardened images (https://github.com/sap-linuxlab/community.sap_install/pull/1057)
327+
- sap_*_preconfigure/SUSE - Add retry attempts to zypper pattern installation (https://github.com/sap-linuxlab/community.sap_install/pull/1032)
328+
- sap_hana_install - update README.md with Local Secure Store (LSS) installation details and examples (https://github.com/sap-linuxlab/community.sap_install/pull/1008)
329+
- sap_swpm - Sanitize hostname length (https://github.com/sap-linuxlab/community.sap_install/pull/1042)
330+
- sap_swpm - Ensure sap_swpm_product_catalog_id is a string (https://github.com/sap-linuxlab/community.sap_install/pull/1035)
331+
- sap_swpm - Require inifile.params only on the managed node when reusing an existing inifile.params. (https://github.com/sap-linuxlab/community.sap_install/pull/1024)
332+
- sap_swpm - Fix TEMP handling (https://github.com/sap-linuxlab/community.sap_install/pull/1019)
333+
- sap_swpm - Remove selinux role dependency from README.md (https://github.com/sap-linuxlab/community.sap_install/pull/1012)
334+
- sap_ha_pacemaker_cluster/SUSE - Remove python3-rpm dependency in pre_steps_hana (https://github.com/sap-linuxlab/community.sap_install/pull/1028)

galaxy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace: community
1111
name: sap_install
1212

1313
# The version of the collection. Must be compatible with semantic versioning
14-
version: 1.5.3
14+
version: 1.6.0
1515

1616
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1717
readme: README.md
@@ -58,7 +58,7 @@ dependencies: {}
5858
repository: https://github.com/sap-linuxlab/community.sap_install
5959

6060
# The URL to any online docs
61-
documentation: https://github.com/sap-linuxlab/sap-linuxlab.github.io/blob/master/README.md
61+
documentation: https://github.com/sap-linuxlab/community.sap_install/blob/main/README.md
6262

6363
# The URL to the homepage of the collection/project
6464
homepage: https://sap-linuxlab.github.io

roles/sap_anydb_install_oracle/tasks/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
# SPDX-License-Identifier: Apache-2.0
22
---
33

4+
# Example of files loading order:
5+
# 1. Suse.yml / RedHat.yml - Specific to OS family.
6+
# 2. SLES_15.yml / RedHat_9.yml - Specific to distribution (SLES, SLES_SAP or RedHat) and major release.
7+
# 3. SLES_15.6.yml / RedHat_9.2 - Specific to distribution (SLES, SLES_SAP or RedHat) and minor release.
8+
# 4. SLES_SAP_15.yml - Specific to distribution SLES_SAP and major release.
9+
# 5. SLES_SAP_15.6.yml - Specific to distribution SLES_SAP and minor release.
10+
- name: Include OS specific vars
11+
ansible.builtin.include_vars: "{{ __vars_file }}"
12+
loop: "{{ __var_files }}"
13+
vars:
14+
__vars_file: "{{ role_path }}/vars/{{ item }}"
15+
__distribution_major: "{{ ansible_distribution ~ '_' ~ ansible_distribution_major_version }}"
16+
__distribution_minor: "{{ ansible_distribution ~ '_' ~ ansible_distribution_version }}"
17+
# Enables loading of shared vars between SLES and SLES_SAP
18+
__distribution_major_split: "{{ ansible_distribution.split('_')[0] ~ '_' ~ ansible_distribution_major_version }}"
19+
__distribution_minor_split: "{{ ansible_distribution.split('_')[0] ~ '_' ~ ansible_distribution_version }}"
20+
__var_files: >-
21+
{{
22+
[
23+
ansible_os_family ~ '.yml',
24+
(ansible_distribution ~ '.yml') if ansible_distribution != ansible_os_family else None,
25+
(__distribution_major_split ~ '.yml') if __distribution_major_split != __distribution_major else None,
26+
(__distribution_minor_split ~ '.yml') if __distribution_minor_split != __distribution_minor else None,
27+
__distribution_major ~ '.yml',
28+
__distribution_minor ~ '.yml'
29+
] | select('defined') | select('string') | list
30+
}}
31+
when: __vars_file is file
32+
433
- name: Oracle DB - Pre-installation
534
ansible.builtin.include_tasks: "oracledb_install_pre.yml"
635

roles/sap_anydb_install_oracle/tasks/oracledb_install_pre.yml

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,33 @@
11
# SPDX-License-Identifier: Apache-2.0
22
---
33

4-
# See further:
5-
## oracle-database-preinstall-12cr1.rpm
6-
## oracle-database-preinstall-12cr2.rpm
7-
## oracle-database-preinstall-19c.rpm >> https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
4+
# SUSE Specific - zypper pattern installation
5+
# Pattern installation will run only if pattern is not installed
6+
# This ensures that command module shows correct changed status
7+
- name: Query installed zypper patterns
8+
ansible.builtin.command:
9+
cmd: zypper patterns --installed-only
10+
register: __sap_anydb_install_oracle_register_patterns
11+
changed_when: false
12+
ignore_errors: true
13+
when: ansible_os_family == 'Suse'
14+
15+
- name: Ensure that the required zypper patterns are installed
16+
ansible.builtin.command:
17+
cmd: zypper install -y -t pattern {{ item }}
18+
loop: "{{ __sap_anydb_install_oracle_patterns }}"
19+
when:
20+
- ansible_os_family == 'Suse'
21+
- item not in __sap_anydb_install_oracle_register_patterns.stdout
22+
changed_when: item not in __sap_anydb_install_oracle_register_patterns.stdout
23+
24+
825
- name: Install C Shell (CSH), Korn Shell (KSH) and other dependencies for Oracle DB
926
ansible.builtin.package:
10-
name:
11-
- csh
12-
- ksh
13-
- mksh
14-
- bc
15-
- bind-utils
16-
- gcc
17-
- gcc-c++
18-
- glibc-devel
19-
- libcap
20-
- libaio
21-
- libaio-devel
22-
- libgcc
23-
- libstdc++
24-
- libstdc++-devel
25-
- make
26-
- psmisc
27-
- rdma-core-devel
28-
- smartmontools
29-
- sysstat
30-
- unzip
31-
- xorg-x11-utils
32-
- xorg-x11-xauth
33-
- unixODBC
34-
- unixODBC-devel
35-
- libnsl
27+
name: "{{ __sap_anydb_install_oracle_packages | d([]) }}"
3628
state: present
3729
notify: __sap_anydb_install_oracle_reboot_handler
3830

39-
# Removed Packages from RHEL 8.x
40-
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index#removed-packages_changes-to-packages
41-
# - compat-libcap1
42-
# - compat-libstdc++-33
43-
4431

4532
- name: Oracle DB - Create Linux User Groups
4633
become_user: root
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
---
3+
4+
# List of required packages to install
5+
__sap_anydb_install_oracle_packages:
6+
- csh
7+
- ksh
8+
- mksh
9+
- bc
10+
- bind-utils
11+
- gcc
12+
- gcc-c++
13+
- glibc-devel
14+
- libcap
15+
- libaio
16+
- libaio-devel
17+
- libgcc
18+
- libstdc++
19+
- libstdc++-devel
20+
- make
21+
- psmisc
22+
- rdma-core-devel
23+
- smartmontools
24+
- sysstat
25+
- unzip
26+
- xorg-x11-utils
27+
- xorg-x11-xauth
28+
- unixODBC
29+
- unixODBC-devel
30+
- libnsl
31+
32+
# See further:
33+
## oracle-database-preinstall-12cr1.rpm
34+
## oracle-database-preinstall-12cr2.rpm
35+
## oracle-database-preinstall-19c.rpm >> https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
36+
37+
# Removed Packages from RHEL 8.x
38+
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index#removed-packages_changes-to-packages
39+
# - compat-libcap1
40+
# - compat-libstdc++-33
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
---
3+
4+
# List of required packages to install
5+
__sap_anydb_install_oracle_packages:
6+
- tcsh
7+
- ksh
8+
- mksh
9+
- bc
10+
- bind-utils
11+
- gcc
12+
- gcc-c++
13+
- glibc-devel
14+
- libcap2
15+
- libaio
16+
- libaio-devel
17+
- libgcc_s1
18+
- libstdc++6
19+
- libstdc++-devel
20+
- make
21+
- psmisc
22+
- rdma-core-devel
23+
- smartmontools
24+
- sysstat
25+
- unzip
26+
- unixODBC
27+
- unixODBC-devel
28+
- libnsl2
29+
30+
# List of required zypper patterns
31+
# NOTE: Pattern oracle_server (orarun package) is not compatible with saptune NETWEAVER,
32+
# because SUSE does not support Single-host SAP System with Oracle database.
33+
__sap_anydb_install_oracle_patterns:
34+
- oracle_server

roles/sap_general_preconfigure/tasks/RedHat/generic/configure-selinux.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
changed_when: false
4444
when: __sap_general_preconfigure_fact_selinux_mode != sap_general_preconfigure_selinux_state
4545

46-
- name: Set or unset SELinux kernel parameter, RHEL 8 and RHEL 9
46+
- name: Set or unset SELinux kernel parameter, RHEL >= 8
4747
when:
4848
- ansible_os_family == 'RedHat'
49-
- ( ansible_distribution_major_version == '8' or
50-
ansible_distribution_major_version == '9'
51-
)
49+
- ansible_distribution_major_version | int >= 8
5250
block:
5351

5452
- name: SELinux - Examine grub entries
@@ -57,7 +55,7 @@
5755
check_mode: false
5856
changed_when: false
5957

60-
- name: Disable SELinux on the kernel command line, RHEL 8 and RHEL 9
58+
- name: Disable SELinux on the kernel command line, RHEL >= 8
6159
when:
6260
- sap_general_preconfigure_selinux_state == 'disabled'
6361
- __sap_general_preconfigure_register_grubby_info_all_selinux.stdout.split(' ').1 !=
@@ -67,7 +65,7 @@
6765
# If the number of grub entries for args is different from the number of grub entries with "selinux=0",
6866
# we know that at least one grub entry is missing "selinux=0", so we make sure that all grub entries
6967
# contain "selinux=0"
70-
- name: Disable SELinux also on the kernel command line, RHEL 8 and RHEL 9
68+
- name: Disable SELinux also on the kernel command line, RHEL >= 8
7169
ansible.builtin.command: grubby --args="selinux=0" --update-kernel=ALL
7270
notify: __sap_general_preconfigure_reboot_handler
7371
changed_when: true
@@ -77,7 +75,7 @@
7775
ansible.builtin.set_fact:
7876
sap_general_preconfigure_fact_reboot_required: true
7977

80-
- name: Enable SELinux on the kernel command line, RHEL 8 and RHEL 9
78+
- name: Enable SELinux on the kernel command line, RHEL >= 8
8179
when:
8280
- sap_general_preconfigure_selinux_state == 'enforcing' or
8381
sap_general_preconfigure_selinux_state == 'permissive'
@@ -86,7 +84,7 @@
8684

8785
# If the number of grub entries for args with "selinux=0" is not 0, we know that there is at least
8886
# one grub entry with "selinux=0", so we make sure that no grub entry contains "selinux=0"
89-
- name: Make sure SELinux is not disabled on the kernel command line, RHEL 8 and RHEL 9
87+
- name: Make sure SELinux is not disabled on the kernel command line, RHEL >= 8
9088
ansible.builtin.command: grubby --remove-args="selinux" --update-kernel=ALL
9189
notify: __sap_general_preconfigure_reboot_handler
9290
changed_when: true
@@ -112,7 +110,7 @@
112110
name: '{{ sap_general_preconfigure_system_roles_collection }}.selinux'
113111
vars:
114112
selinux_booleans:
115-
- { name: 'selinuxuser_execmod', state: 'on' }
113+
- { name: 'selinuxuser_execmod', state: 'on', persistent: 'true' }
116114
selinux_fcontexts:
117115
- "{{ sap_general_preconfigure_fact_targets_setypes }}"
118116
selinux_restore_dirs:

0 commit comments

Comments
 (0)