Skip to content

Commit a872878

Browse files
authored
Merge pull request #933 from sap-linuxlab/dev
merge dev to main for release 1.5.1
2 parents ee4f366 + 468f8ce commit a872878

File tree

85 files changed

+793
-331
lines changed

Some content is hidden

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

85 files changed

+793
-331
lines changed

CHANGELOG.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ community.sap_install Release Notes
55
.. contents:: Topics
66

77

8+
1.5.1
9+
Release Summary
10+
---------------
11+
- Release Date: 2025-01-15
12+
13+
This is a bugfix release of the `community.sap_install` collection.
14+
15+
Minor Changes
16+
-------------
17+
- sap_ha_pacemaker_cluster: enable Simple Mount on RHEL (https://github.com/sap-linuxlab/community.sap_install/pull/931)
18+
- sap_ha_pacemaker_cluster/SUSE: Rework SAPHanaSR-angi pre-steps and add SLES 16 vars (https://github.com/sap-linuxlab/community.sap_install/pull/928)
19+
- sap_swpm, sap_general_preconfigure: Add variables for sap_install FQCN collection name for calling roles (https://github.com/sap-linuxlab/community.sap_install/pull/925)
20+
- sap_general_preconfigure: Implement SAP note 2369910 (https://github.com/sap-linuxlab/community.sap_install/pull/914)
21+
- sap_ha_pacemaker_cluster: ANGI on RHEL and small improvements (https://github.com/sap-linuxlab/community.sap_install/pull/911)
22+
- sap_*_preconfigure, sap_ha_pacemaker_cluster: Reworked loading vars (https://github.com/sap-linuxlab/community.sap_install/pull/910)
23+
24+
Bugfixes
25+
--------
26+
- sap_swpm: Use master password only when necessary (https://github.com/sap-linuxlab/community.sap_install/pull/920)
27+
- sap_swpm: Fix error when using tag sap_swpm_generate_inifile (https://github.com/sap-linuxlab/community.sap_install/pull/918)
28+
- sap_swpm: Fix error when installing SAP NW750 JAVA or SOLMAN72SR2 JAVA instances (https://github.com/sap-linuxlab/community.sap_install/pull/916)
29+
- sap_install_media_detect: Fix wrong sap_export_solman_java detection (https://github.com/sap-linuxlab/community.sap_install/pull/913)
30+
31+
832
v1.5.0
933
======
1034

changelogs/changelog.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,20 @@ releases:
273273
- sap_ha_install_anydb_ibmdb2: Linting and sles bug fixes (https://github.com/sap-linuxlab/community.sap_install/pull/803)
274274
'
275275
release_date: '2024-11-29'
276+
1.5.1:
277+
changes:
278+
release_summary: '| Release Date: 2025-01-15
279+
minor_changes:
280+
- sap_ha_pacemaker_cluster: enable Simple Mount on RHEL (https://github.com/sap-linuxlab/community.sap_install/pull/931)
281+
- sap_ha_pacemaker_cluster/SUSE: Rework SAPHanaSR-angi pre-steps and add SLES 16 vars (https://github.com/sap-linuxlab/community.sap_install/pull/928)
282+
- sap_swpm, sap_general_preconfigure: Add variables for sap_install FQCN collection name for calling roles (https://github.com/sap-linuxlab/community.sap_install/pull/925)
283+
- sap_general_preconfigure: Implement SAP note 2369910 (https://github.com/sap-linuxlab/community.sap_install/pull/914)
284+
- sap_ha_pacemaker_cluster: ANGI on RHEL and small improvements (https://github.com/sap-linuxlab/community.sap_install/pull/911)
285+
- sap_*_preconfigure, sap_ha_pacemaker_cluster: Reworked loading vars (https://github.com/sap-linuxlab/community.sap_install/pull/910)
286+
bugfixes:
287+
- sap_swpm: Use master password only when necessary (https://github.com/sap-linuxlab/community.sap_install/pull/920)
288+
- sap_swpm: Fix error when using tag sap_swpm_generate_inifile (https://github.com/sap-linuxlab/community.sap_install/pull/918)
289+
- sap_swpm: Fix error when installing SAP NW750 JAVA or SOLMAN72SR2 JAVA instances (https://github.com/sap-linuxlab/community.sap_install/pull/916)
290+
- sap_install_media_detect: Fix wrong sap_export_solman_java detection (https://github.com/sap-linuxlab/community.sap_install/pull/913)
291+
'
292+
release_date: '2025-01-15'

galaxy.yml

Lines changed: 1 addition & 1 deletion
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.0
14+
version: 1.5.1
1515

1616
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1717
readme: README.md

roles/sap_general_preconfigure/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ sap_general_preconfigure_system_roles_collection: 'fedora.linux_system_roles'
3131
# - fedora.linux_system_roles
3232
# - redhat.rhel_system_roles
3333

34+
sap_general_preconfigure_sap_install_collection: 'community.sap_install'
35+
# Set which Ansible Collection to use when calling sap_install roles.
36+
3437
sap_general_preconfigure_enable_repos: false
3538
# Set to `true` if you want the role to enable the repos as configured by the following repo related parameters.
3639
# The default is `false`, meaning that the role will not enable repos.
@@ -166,4 +169,7 @@ sap_general_preconfigure_domain: "{{ sap_domain | d(ansible_domain) }}"
166169
# Configuring Process Resource Limits
167170
# Example: See README.md
168171

172+
# in SAP Note 2369910 SAP requires English locale
173+
# If you want to define the locale set this to e.g. en_US.UTF-8
174+
sap_general_preconfigure_default_locale: ""
169175
# END: Default Variables for sap_general_preconfigure

roles/sap_general_preconfigure/meta/argument_specs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ argument_specs:
7575
required: false
7676
type: str
7777

78+
sap_general_preconfigure_sap_install_collection:
79+
default: 'community.sap_install'
80+
description: Set which Ansible Collection to use when calling sap_install roles.
81+
required: false
82+
type: str
83+
7884
sap_general_preconfigure_enable_repos:
7985
default: false
8086
description:
@@ -341,3 +347,11 @@ argument_specs:
341347
sap_general_preconfigure_db_group_name: 'dba'
342348
required: false
343349
type: str
350+
351+
sap_general_preconfigure_default_locale:
352+
description:
353+
- Use this variable to specify the default system locale.
354+
example:
355+
sap_general_preconfigure_default_locale: 'en_US.UTF-8'
356+
required: false
357+
type: str

roles/sap_general_preconfigure/tasks/RedHat/assert-installation.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
- name: Assert - Get info about enabled repos
5050
ansible.builtin.shell: set -o pipefail && subscription-manager repos --list-enabled | awk '/Repo ID:/{print $NF}'
5151
register: __sap_general_preconfigure_register_enabled_repos_assert
52-
changed_when: no
52+
changed_when: false
5353

5454
- name: Assert that all required repos are enabled
5555
ansible.builtin.assert:
@@ -69,8 +69,8 @@
6969
- name: Detect if and how the minor RHEL release is set
7070
ansible.builtin.shell: set -o pipefail && subscription-manager release | awk 'NF==2{printf $NF}NF!=2{print}'
7171
register: __sap_general_preconfigure_register_subscription_manager_release_assert
72-
changed_when: no
73-
ignore_errors: yes
72+
changed_when: false
73+
ignore_errors: true
7474

7575
- name: Assert that the RHEL release is locked correctly
7676
ansible.builtin.assert:
@@ -104,7 +104,7 @@
104104
- name: Check if required RHEL 7 package groups are installed # noqa command-instead-of-shell
105105
ansible.builtin.shell: "{{ __sap_general_preconfigure_fact_yum_group_list_installed_command_assert }}"
106106
register: __sap_general_preconfigure_register_yum_group_assert
107-
changed_when: no
107+
changed_when: false
108108

109109
- name: Assert that all required RHEL 7 package groups are installed
110110
ansible.builtin.assert:
@@ -133,7 +133,7 @@
133133
- name: Check if required RHEL 8 environment groups are installed # noqa command-instead-of-shell
134134
ansible.builtin.shell: "{{ __sap_general_preconfigure_fact_yum_envgroup_list_installed_command_assert }}"
135135
register: __sap_general_preconfigure_register_yum_envgroup_assert
136-
changed_when: no
136+
changed_when: false
137137

138138
- name: Assert that all required RHEL 8 environment groups are installed
139139
ansible.builtin.assert:
@@ -162,7 +162,7 @@
162162
set -o pipefail && yum info installed {{ __sap_general_preconfigure_required_ppc64le | map('quote') | join(' ') }} |
163163
awk '/Name/{n=$NF}/Version/{v=$NF}/Release/{r=$NF}/Description/{printf ("%s\n", n)}'
164164
register: __sap_general_preconfigure_register_required_ppc64le_packages_assert
165-
changed_when: no
165+
changed_when: false
166166
when: ansible_architecture == "ppc64le"
167167
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
168168

@@ -223,9 +223,9 @@
223223
with_list: "{{ __sap_general_preconfigure_min_pkgs }}"
224224
loop_control:
225225
loop_var: pkg
226-
check_mode: no
226+
check_mode: false
227227
register: __sap_general_preconfigure_register_minpkglist_assert
228-
changed_when: no
228+
changed_when: false
229229

230230
- name: Assert that minimum required package versions are installed
231231
# If the output includes the string "is already installed" (case 2b), we have a PASS. Otherwise, it's a FAIL.
@@ -237,12 +237,12 @@
237237
loop_control:
238238
loop_var: line_item
239239
label: ""
240-
ignore_errors: yes
240+
ignore_errors: true
241241

242242
- name: Report if no minimum required package version is defined for this RHEL release
243243
ansible.builtin.debug:
244244
msg: "INFO: No minimum required package version defined (variable __sap_general_preconfigure_min_pkgs)."
245-
ignore_errors: yes
245+
ignore_errors: true
246246
when: not __sap_general_preconfigure_min_pkgs | d([])
247247

248248
# Reason for noqa: The yum module appears to not support the check-update option
@@ -265,7 +265,7 @@
265265
- name: Report if checking for possible package updates is not requested
266266
ansible.builtin.debug:
267267
msg: "INFO: Not checking for possible package updates (variable sap_general_preconfigure_update)."
268-
ignore_errors: yes
268+
ignore_errors: true
269269
when: not sap_general_preconfigure_update
270270

271271
- name: "Assert - Set needs-restarting command in case of RHEL 7"

roles/sap_general_preconfigure/tasks/RedHat/generic/assert-dns-name-resolution.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
fail_msg: "FAIL: The DNS domain is not configured! So variable 'sap_general_preconfigure_domain' needs to be configured!"
88
success_msg: "PASS: The DNS domain is configured."
99
# ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
10-
ignore_errors: yes
10+
ignore_errors: true
1111

1212
- name: Assert that variable sap_general_preconfigure_domain is set
1313
ansible.builtin.assert:
@@ -25,8 +25,8 @@
2525
- name: Check if IP address for sap_general_preconfigure_hostname.sap_general_preconfigure_domain is resolved correctly
2626
ansible.builtin.command: dig {{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }} +short
2727
register: __sap_general_preconfigure_register_dig_short_assert
28-
ignore_errors: yes
29-
changed_when: no
28+
ignore_errors: true
29+
changed_when: false
3030
when: "'bind-utils' in ansible_facts.packages"
3131

3232
- name: Assert that ansible_default_ipv4.address is set

roles/sap_general_preconfigure/tasks/RedHat/generic/assert-etc-hosts.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
- name: Check if ipv4 address, FQDN, and hostname are once in /etc/hosts
1212
ansible.builtin.command: awk 'BEGIN{a=0}/^{{ sap_general_preconfigure_ip }}\s/&&/\s{{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }}\s/&&(/\s{{ sap_general_preconfigure_hostname }}\s/||/\s{{ sap_general_preconfigure_hostname }}$/){a++}END{print a}' /etc/hosts
1313
register: __sap_general_preconfigure_register_ipv4_fqdn_sap_hostname_once_assert
14-
ignore_errors: yes
15-
changed_when: no
14+
ignore_errors: true
15+
changed_when: false
1616

1717
- name: Assert that ipv4 address, FQDN, and hostname are once in /etc/hosts
1818
ansible.builtin.assert:
@@ -25,8 +25,8 @@
2525
- name: Count the number of sap_general_preconfigure_ip ({{ sap_general_preconfigure_ip }}) entries in /etc/hosts
2626
ansible.builtin.command: awk 'BEGIN{a=0}/^{{ sap_general_preconfigure_ip }}\s/{a++}END{print a}' /etc/hosts
2727
register: __sap_general_preconfigure_register_sap_ip_once_assert
28-
ignore_errors: yes
29-
changed_when: no
28+
ignore_errors: true
29+
changed_when: false
3030

3131
- name: Assert that there is exactly one line containing {{ sap_general_preconfigure_ip }} in /etc/hosts
3232
ansible.builtin.assert:
@@ -40,8 +40,8 @@
4040
/\s{{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }}\s/||
4141
/\s{{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }}$/{a++}END{print a}' /etc/hosts
4242
register: __sap_general_preconfigure_register_fqdn_once_assert
43-
ignore_errors: yes
44-
changed_when: no
43+
ignore_errors: true
44+
changed_when: false
4545

4646
- name: Assert that there is just one line containing {{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }} in /etc/hosts
4747
ansible.builtin.assert:
@@ -55,8 +55,8 @@
5555
/\s{{ sap_general_preconfigure_hostname }}\s/||
5656
/\s{{ sap_general_preconfigure_hostname }}$/{a++}END{print a}' /etc/hosts
5757
register: __sap_general_preconfigure_register_sap_hostname_once_assert
58-
ignore_errors: yes
59-
changed_when: no
58+
ignore_errors: true
59+
changed_when: false
6060

6161
- name: Assert that there is just one line containing {{ sap_general_preconfigure_hostname }} in /etc/hosts
6262
ansible.builtin.assert:
@@ -68,8 +68,8 @@
6868
- name: Test hostname -s
6969
ansible.builtin.shell: test "$(hostname -s)" = "$(hostname)"
7070
register: __sap_general_preconfigure_register_hostname_s_assert
71-
ignore_errors: yes
72-
changed_when: no
71+
ignore_errors: true
72+
changed_when: false
7373

7474
- name: Assert that hostname -s matches the output of hostname
7575
ansible.builtin.assert:
@@ -81,8 +81,8 @@
8181
- name: Test hostname -f
8282
ansible.builtin.shell: test "$(hostname -f)" = "$(hostname).$(hostname -d)"
8383
register: __sap_general_preconfigure_register_hostname_f_assert
84-
ignore_errors: yes
85-
changed_when: no
84+
ignore_errors: true
85+
changed_when: false
8686

8787
- name: Assert that hostname -f matches the output of hostname.hostname -d
8888
ansible.builtin.assert:

roles/sap_general_preconfigure/tasks/RedHat/generic/assert-firewall.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
- name: Get status of firewalld # noqa command-instead-of-module
1919
ansible.builtin.command: systemctl status firewalld
2020
register: __sap_general_preconfigure_register_firewalld_status_assert
21-
ignore_errors: yes
22-
changed_when: no
23-
no_log: yes
21+
ignore_errors: true
22+
changed_when: false
23+
no_log: true
2424

2525
- name: Assert that firewalld is disabled
2626
ansible.builtin.assert:

roles/sap_general_preconfigure/tasks/RedHat/generic/assert-hostname.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
- name: Check if hostname is set
55
ansible.builtin.command: hostname
66
register: __sap_general_preconfigure_register_hostname_assert
7-
ignore_errors: yes
8-
changed_when: no
7+
ignore_errors: true
8+
changed_when: false
99

1010
- name: Assert that the output of hostname matches the content of variable sap_general_preconfigure_hostname
1111
ansible.builtin.assert:

0 commit comments

Comments
 (0)