File tree Expand file tree Collapse file tree 10 files changed +50
-10
lines changed
sap_netweaver_preconfigure Expand file tree Collapse file tree 10 files changed +50
-10
lines changed Original file line number Diff line number Diff line change 2
2
---
3
3
# 1275776 - Linux: Preparing SLES for SAP environments
4
4
5
+ # saptune_check fails if 'saptune service takeover' was not executed.
5
6
- name : Execute saptune_check - before takeover
6
7
ansible.builtin.command :
7
8
cmd : saptune_check
10
11
changed_when : false
11
12
failed_when : false
12
13
13
- - name : Takeover and enable saptune
14
+ - name : Takeover saptune
14
15
when :
15
16
- __sap_general_preconfigure_use_saptune
16
17
- __sap_general_preconfigure_register_saptune_check_before.rc != 0
18
+ # sapconf is not present on SLES 16 and takeover is not required.
19
+ - ansible_distribution_major_version | int < 16
17
20
block :
18
21
- name : Check saptune version # noqa: command-instead-of-module
19
22
ansible.builtin.command :
27
30
name : sapconf
28
31
state : stopped
29
32
enabled : false
30
- when : __sap_general_preconfigure_register_sapconf
33
+ when : __sap_general_preconfigure_register_sapconf.rc == 0
31
34
32
35
- name : Make sure that sapconf and tuned are stopped and disabled
33
36
ansible.builtin.command :
42
45
register : __sap_general_preconfigure_register_sapconf_failed
43
46
changed_when : false
44
47
ignore_errors : true
48
+ when : __sap_general_preconfigure_register_sapconf.rc == 0
45
49
46
50
- name : Execute systemctl reset-failed sapconf.service # noqa command-instead-of-module
47
51
ansible.builtin.command :
48
52
cmd : systemctl reset-failed sapconf.service
49
- when : __sap_general_preconfigure_register_sapconf_failed.rc == 0
53
+ when :
54
+ - __sap_general_preconfigure_register_sapconf.rc == 0
55
+ - __sap_general_preconfigure_register_sapconf_failed.rc == 0
50
56
changed_when : true
51
57
58
+
59
+ - name : Enable saptune service
60
+ when :
61
+ - __sap_general_preconfigure_use_saptune
62
+ block :
52
63
- name : Ensure saptune is running and enabled
53
64
ansible.builtin.systemd :
54
65
name : saptune
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ __sap_general_preconfigure_packages:
23
23
- bind-utils
24
24
- hostname
25
25
26
+ # Required for zypper ps
27
+ - lsof
28
+
26
29
# Packages specific for SAP Note 2578899
27
30
# Their services are enabled using __sap_general_preconfigure_services_2578899
28
31
__sap_general_preconfigure_packages_2578899 :
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ __sap_general_preconfigure_packages:
24
24
- nfs-utils
25
25
- bind-utils
26
26
27
+ # Required for zypper ps
28
+ - lsof
29
+
27
30
# Packages specific for SAP Note 2578899
28
31
# Their services are enabled using __sap_general_preconfigure_services_2578899
29
32
__sap_general_preconfigure_packages_2578899 :
Original file line number Diff line number Diff line change 6
6
__sap_general_preconfigure_sapnotes_versions : []
7
7
8
8
__sap_general_preconfigure_patterns :
9
- - sles_minimal_sap
9
+ - sles_sap_minimal_sap
10
10
11
11
__sap_general_preconfigure_packages :
12
12
# Patterns are not included in package list
@@ -25,6 +25,8 @@ __sap_general_preconfigure_packages:
25
25
- nfs-utils
26
26
- bind-utils
27
27
28
+ # Required for zypper ps
29
+ - lsof
28
30
29
31
__sap_general_preconfigure_min_pkgs : []
30
32
__sap_general_preconfigure_packagegroups :
Original file line number Diff line number Diff line change 10
10
changed_when : false
11
11
failed_when : false
12
12
13
- - name : Takeover and enable saptune
13
+ - name : Takeover saptune
14
14
when :
15
15
- __sap_hana_preconfigure_use_saptune
16
16
- __sap_hana_preconfigure_register_saptune_check_before.rc != 0
17
+ # sapconf is not present on SLES 16 and takeover is not required.
18
+ - ansible_distribution_major_version | int < 16
17
19
block :
18
20
- name : Check saptune version # noqa: command-instead-of-module
19
21
ansible.builtin.command :
27
29
name : sapconf
28
30
state : stopped
29
31
enabled : false
30
- when : __sap_hana_preconfigure_register_sapconf
32
+ when : __sap_hana_preconfigure_register_sapconf.rc == 0
31
33
32
34
- name : Make sure that sapconf and tuned are stopped and disabled
33
35
ansible.builtin.command :
49
51
when : __sap_hana_preconfigure_register_sapconf_failed.rc == 0
50
52
changed_when : true
51
53
54
+
55
+ - name : Enable saptune service
56
+ when :
57
+ - __sap_hana_preconfigure_use_saptune
58
+ block :
52
59
- name : Ensure saptune is running and enabled
53
60
ansible.builtin.systemd :
54
61
name : saptune
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ __sap_hana_preconfigure_packages_2684254:
92
92
- libssh2-1
93
93
- libopenssl1_1
94
94
- insserv-compat
95
+ - libltdl7
95
96
96
97
__sap_hana_preconfigure_min_pkgs :
97
98
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ __sap_hana_preconfigure_packages_2684254:
58
58
- libssh2-1
59
59
- libopenssl1_1
60
60
- insserv-compat
61
+ - libltdl7
61
62
62
63
63
64
__sap_hana_preconfigure_min_pkgs :
Original file line number Diff line number Diff line change 4
4
# - SUSE Linux Enterprise Server for SAP Applications 16
5
5
6
6
__sap_hana_preconfigure_sapnotes_versions : []
7
+ # 3577842 - - SAP HANA DB: Recommended OS settings for SLES 16 / SLES for SAP Applications 16
8
+ # - { number: '3577842', version: '1' }
7
9
8
10
__sap_hana_preconfigure_min_pkgs :
9
11
10
12
__sap_hana_preconfigure_patterns :
11
- - sles_minimal_sap
13
+ - sles_sap_minimal_sap
12
14
- sles_sap_DB
13
15
14
16
__sap_hana_preconfigure_packages :
@@ -24,6 +26,9 @@ __sap_hana_preconfigure_packages:
24
26
- sysstat
25
27
- sysctl-logger
26
28
29
+ # 3577842
30
+ - libltdl7
31
+
27
32
# 3139184 - Linux: systemd integration for sapstartsrv and SAP Host Agent
28
33
- polkit
29
34
Original file line number Diff line number Diff line change 10
10
changed_when : false
11
11
failed_when : false
12
12
13
- - name : Takeover and enable saptune
13
+ - name : Takeover saptune
14
14
when :
15
15
- __sap_netweaver_preconfigure_use_saptune
16
16
- __sap_netweaver_preconfigure_register_saptune_check_before.rc != 0
17
+ # sapconf is not present on SLES 16 and takeover is not required.
18
+ - ansible_distribution_major_version | int < 16
17
19
block :
18
20
- name : Check saptune version # noqa: command-instead-of-module
19
21
ansible.builtin.command :
27
29
name : sapconf
28
30
state : stopped
29
31
enabled : false
30
- when : __sap_netweaver_preconfigure_register_sapconf
32
+ when : __sap_netweaver_preconfigure_register_sapconf.rc == 0
31
33
32
34
- name : Make sure that sapconf and tuned are stopped and disabled
33
35
ansible.builtin.command :
49
51
when : __sap_netweaver_preconfigure_register_sapconf_failed.rc == 0
50
52
changed_when : true
51
53
54
+
55
+ - name : Enable saptune service
56
+ when :
57
+ - __sap_netweaver_preconfigure_use_saptune
58
+ block :
52
59
- name : Ensure saptune is running and enabled
53
60
ansible.builtin.systemd :
54
61
name : saptune
Original file line number Diff line number Diff line change 6
6
__sap_netweaver_preconfigure_sapnotes_versions : []
7
7
8
8
__sap_netweaver_preconfigure_patterns :
9
- - sles_minimal_sap
9
+ - sles_sap_minimal_sap
10
10
- sles_sap_APP
11
11
12
12
__sap_netweaver_preconfigure_packages :
You can’t perform that action at this time.
0 commit comments