Skip to content

Commit 384f4d8

Browse files
committed
fix: Issue 868 fix for SLES4SAP15 SP6
1 parent 5f4a466 commit 384f4d8

File tree

8 files changed

+91
-38
lines changed

8 files changed

+91
-38
lines changed

roles/sap_hana_preconfigure/defaults/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,15 @@ sap_hana_preconfigure_run_grub2_mkconfig: true
166166
# It will be used to configure process limits as per step "Configuring Process Resource Limits" of SAP note 2772999.
167167
# Example: See README.md
168168

169-
sap_hana_preconfigure_saptune_version: ''
170-
# Version of saptune to install (SLES for SAP Applications).
169+
# (SUSE specific) Version of saptune to install.
171170
# It is recommended to install latest version by keeping this variable empty.
172171
# This will replace the current installed version if present, even downgrade if necessary.
172+
sap_hana_preconfigure_saptune_version: ''
173173

174+
# (SUSE specific) Saptune solution to be applied.
175+
# Available options for HANA are: HANA, NETWEAVER+HANA, S4HANA-APP+DB, S4HANA-DBSERVER
174176
sap_hana_preconfigure_saptune_solution: 'HANA'
175-
# The saptune solution to apply (SLES for SAP Applications).
176-
# Possible Values:
177-
# - HANA
178-
# - NETWEAVER+HANA
179-
# - S4HANA-APP+DB
180-
# - S4HANA-DBSERVER
177+
181178

182179
sap_hana_preconfigure_saptune_azure: false
183180
# On Azure, TCP timestamps, reuse and recycle should be disabled (SLES for SAP Applications).

roles/sap_hana_preconfigure/meta/argument_specs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,15 +353,15 @@ argument_specs:
353353
sap_hana_preconfigure_saptune_version:
354354
default: ''
355355
description:
356-
- Version of saptune to install (SLES for SAP Applications).
356+
- (SUSE specific) Version of saptune to install.
357357
- This will replace the current installed version if present, even downgrade if necessary.
358358
required: false
359359
type: str
360360

361361
sap_hana_preconfigure_saptune_solution:
362362
default: HANA
363363
description:
364-
- The saptune solution to apply (SLES for SAP Applications).
364+
- (SUSE specific) Saptune solution to be applied.
365365
choices:
366366
- 'HANA'
367367
- 'NETWEAVER+HANA'

roles/sap_hana_preconfigure/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
ansible.builtin.debug:
66
var: role_path
77

8+
# Load variable file starting with actual version up to OS family.
9+
# Example for SUSE Linux Enterprise Server for SAP Applications 15 SP6:
10+
# 1. SLES_SAP_15.6.yml
11+
# 2. SLES_SAP_15.yml
12+
# 3. SLES_15.yml
13+
# 4. Suse.yml
814
- name: Include OS specific vars
915
ansible.builtin.include_vars: '{{ item }}'
1016
with_first_found:
11-
- '{{ ansible_distribution.split("_")[0] }}_{{ ansible_distribution_major_version }}.yml'
1217
- '{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml'
1318
- '{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml'
19+
- '{{ ansible_distribution.split("_")[0] }}_{{ ansible_distribution_major_version }}.yml'
1420
- '{{ ansible_os_family }}.yml'
1521

1622
- name: Set filename prefix to empty string if role is run in normal mode

roles/sap_netweaver_preconfigure/defaults/main.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,24 @@
33
# defaults file for sap_netweaver_preconfigure
44

55
# Perform an assertion run:
6-
sap_netweaver_preconfigure_assert: no
6+
sap_netweaver_preconfigure_assert: false
77

88
# In case of an assertion run, if set to "yes", the role will abort for any assertion error:
9-
sap_netweaver_preconfigure_assert_ignore_errors: no
9+
sap_netweaver_preconfigure_assert_ignore_errors: false
1010

1111
sap_netweaver_preconfigure_min_swap_space_mb: '20480'
1212

13-
sap_netweaver_preconfigure_fail_if_not_enough_swap_space_configured: yes
13+
sap_netweaver_preconfigure_fail_if_not_enough_swap_space_configured: true
1414

1515
sap_netweaver_preconfigure_rpath: '/usr/sap/lib'
1616

17-
sap_netweaver_preconfigure_use_adobe_doc_services: no
17+
sap_netweaver_preconfigure_use_adobe_doc_services: true
1818

19-
#SLES Only
20-
sap_netweaver_preconfigure_saptune_version: '3.0.2'
21-
22-
## The following variables control aspects of saptune and are only relevant for SLES for SAP Application
23-
24-
# The saptune solution to apply. For netweaver, the only appropriate options are:
25-
#NETWEAVER
26-
#NETWEAVER+HANA
27-
#S4HANA-APP+DB
28-
#S4HANA-APPSERVER
29-
#S4HANA-DBSERVER
30-
# The default value is NETWEAVER
19+
# (SUSE specific) Version of saptune to install.
20+
# It is recommended to install latest version by keeping this variable empty.
21+
# This will replace the current installed version if present, even downgrade if necessary.
22+
sap_netweaver_preconfigure_saptune_version: ''
3123

24+
# (SUSE specific) Saptune solution to be applied.
25+
# Available options for Netweaver are: NETWEAVER, NETWEAVER+HANA, S4HANA-APP+DB, S4HANA-APPSERVER, S4HANA-DBSERVER
3226
sap_netweaver_preconfigure_saptune_solution: NETWEAVER

roles/sap_netweaver_preconfigure/meta/argument_specs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,17 @@ argument_specs:
9696
type: bool
9797

9898
sap_netweaver_preconfigure_saptune_version:
99-
default: '3.0.2'
99+
default: ''
100100
description:
101-
- On SLES systems, specifies the saptune version
101+
- (SUSE specific) Version of saptune to install.
102+
- This will replace the current installed version if present, even downgrade if necessary.
102103
required: false
103104
type: str
104105

105106
sap_netweaver_preconfigure_saptune_solution:
106107
default: 'NETWEAVER'
107108
description:
108-
- On SLES systems, specifies the saptune solution to apply.
109+
- (SUSE specific) Saptune solution to be applied.
109110
choices:
110111
- 'NETWEAVER'
111112
- 'NETWEAVER+HANA'

roles/sap_netweaver_preconfigure/tasks/SLES/installation.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,30 @@
2020
- '"SLES" in sles_baseproduct.stat.lnk_target'
2121
- ansible_os_family == 'Suse'
2222

23-
# The use of zypper here allows exact saptune version to be declared and used.
24-
- name: Ensure saptune is installed
25-
community.general.zypper:
26-
type: package
27-
name: "saptune={{ sap_netweaver_preconfigure_saptune_version }}"
28-
state: present
29-
force: true
23+
24+
- name: Prepare saptune
3025
when:
3126
- __sap_netweaver_preconfigure_run_saptune
27+
block:
28+
- name: Ensure latest saptune is installed
29+
community.general.zypper:
30+
type: package
31+
name: saptune
32+
state: present
33+
when:
34+
- sap_netweaver_preconfigure_saptune_version is undefined
35+
or sap_netweaver_preconfigure_saptune_version | length == 0
36+
37+
- name: Ensure specific saptune version is installed
38+
community.general.zypper:
39+
type: package
40+
name: "saptune={{ sap_netweaver_preconfigure_saptune_version }}"
41+
state: present
42+
force: true
43+
when:
44+
- sap_netweaver_preconfigure_saptune_version is defined
45+
- sap_netweaver_preconfigure_saptune_version | length > 0
46+
3247

3348
- name: Ensure sapconf is installed
3449
community.general.zypper:

roles/sap_netweaver_preconfigure/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
ansible.builtin.debug:
66
var: role_path
77

8+
# Load variable file starting with actual version up to OS family.
9+
# Example for SUSE Linux Enterprise Server for SAP Applications 15 SP6:
10+
# 1. SLES_SAP_15.6.yml
11+
# 2. SLES_SAP_15.yml
12+
# 3. SLES_15.yml
13+
# 4. Suse.yml
814
- name: Include OS specific vars
915
ansible.builtin.include_vars: '{{ item }}'
1016
with_first_found:
11-
- '{{ ansible_distribution.split("_")[0] }}_{{ ansible_distribution_major_version }}.yml'
1217
- '{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml'
1318
- '{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml'
19+
- '{{ ansible_distribution.split("_")[0] }}_{{ ansible_distribution_major_version }}.yml'
1420
- '{{ ansible_os_family }}.yml'
1521

1622
- name: Set filename prefix to empty string if role is run in normal mode
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+
# required SAP Notes for SLES 15
4+
5+
__sap_netweaver_preconfigure_sapnotes:
6+
- "1275776"
7+
8+
__sap_netweaver_preconfigure_packages:
9+
- libstdc++6
10+
- libatomic1
11+
- libgcc_s1
12+
- libltdl7
13+
- insserv-compat
14+
- cpupower
15+
- hicolor-icon-theme
16+
- libcpupower1
17+
- libsensors4
18+
- patterns-base-basesystem
19+
- patterns-server-enterprise-sap_server
20+
- patterns-yast-yast2_basis
21+
- procmail
22+
- sysstat
23+
- system-user-uuidd
24+
- uuidd
25+
- yast2-auth-client
26+
- yast2-auth-server
27+
- yast2-theme
28+
- yast2-vpn
29+
- tcsh
30+
- acl
31+
32+
# SLES_SAP is using saptune, but SLES is using sapconf.
33+
# Default value true runs saptune, but installation.yml auto-detects base product and adjusts.
34+
__sap_netweaver_preconfigure_run_saptune: true

0 commit comments

Comments
 (0)