Skip to content

collection: Merge dev to main for release 1.8.0 - #1145

Merged
berndfinger merged 119 commits into
mainfrom
dev
Jan 13, 2026
Merged

collection: Merge dev to main for release 1.8.0#1145
berndfinger merged 119 commits into
mainfrom
dev

Conversation

@berndfinger

Copy link
Copy Markdown
Member

No description provided.

marcelmamula and others added 30 commits August 7, 2025 12:22
The related SAP note is 611361 and it defines the criteria for valid
hostnames for SAP ABAP Platform systems.

Solves issue #1104.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
collection: Adjust roles for ansible-core 2.19 part 1
Preconfigure roles and sap_maintain_etc_hosts Ansible 2.19 readiness for
RHEL managed nodes

Relates to #1101 and #1102.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to #1104.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
sap_swpm: Implement a test and a filter for validating hostnames
Signed-off-by: Bernd Finger <bfinger@redhat.com>
…9-part-2

Collection: ansible core 2.19 part 2
- var-naming[no-role-prefix]
- jinja[spacing]
This commit is to demonstrate how it could work. If we use this method,
we can easily add more validation code in templates/inifile_params.j2.

Relates to #1060.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Main changes in this commit:
- All variables in defaults/main.yml are now defined, typically with an
  empty string.
- Some long comments in defaults/main.yml are rearranged to shorten the
  line length.
- In tasks/pre_install.yml, we are now detecting early if an inifile
  exists at location {{ sap_swpm_inifile_directory }}/inifile.params.
  This allows for early detection of the 4 essential role variables:
    - sap_swpm_software_path
    - sap_swpm_product_catalog_id
    - sap_swpm_sid
    - sap_swpm_fqdn
- We are now validating all the important role parameters (as contained
  in the section "# Following variables are defined and validated:" of the
  Ansible Playbooks for SAP), using the Ansible template module, in two
  stages:
  - Any undefined variable which is used in a defined inifile section
    (there should be none due to the new definitions in
    defaults/main.yml) will cause the template task to fail immediately.
  - Further validation is done using Jinja2 if-else-endif inside the file
    templates/inifile_params.j2, so that there will be one output line in
    the templating result for any validation failure. The output lines
    must start with "FAIL: " so that these outputs can easily be collected
    and displayed. After step 2, all the validation failures are reported
    in one task.
  If the validation has failed in step 2, the remplating result can be
  kept by running the role/playbook with -v or more verbosity. By
  default, the templating result will be removed.
  If the validation has not failed, the remplating result will always be
  removed.
  No validation of the variables of inifile sections will be performed
  if an existing inifile has been found, because then the existing
  infile will be used and a reverse extraction of the role variables is
  not possible and not necessary.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
sap_ha_install_hana_hsr: Fix linter failures
Signed-off-by: Bernd Finger <bfinger@redhat.com>
We don't want to find "FAIL:" if it occurs in lines starting with
a comment sign.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Also add type_debug to the boolean failure messages to make it easier to
understand and fix wrong boolean vars definitions

Signed-off-by: Bernd Finger <bfinger@redhat.com>
- First validation of essential vars only after redefining vars from sap_swpm_templates_install_dictionary
- Further changes for when condition for Ansible 2.19
- some loop variable renamings
- name change for the task in which the validation test is run
- name change for the file in which the validation test results are
  stored
- reordered the order of the second validation of the four essential vars

Signed-off-by: Bernd Finger <bfinger@redhat.com>
... in task "Set fact for the sapinst command line"

Signed-off-by: Bernd Finger <bfinger@redhat.com>
- Define most password vars in templates/inifile_params.j2 from
  sap_swpm_master_password, either directly or as a fallback but only
  if the latter is defined. If not, a FAIL message containing is
  issued, including the the inifile parameter name for which the
  password is required. This should make it easy to decide if the master
  password should be used or rather the specific password variable.
  No password validation is performed for:
nwUsers.sidadmPassword = {{ sap_swpm_master_password }}
  because nwUsers.sidadmPassword can be an empty string.
- Set no_log:true for password related tasks, to hide the passwords also
  in verbose mode

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
berndfinger and others added 25 commits December 1, 2025 09:53
If sap_hana_install_modify_selinux_labels is defined in a playbook or inventory,
use that one instead of sap_hana_install_configure_selinux (which is also defined
in defaults/main.ylm).

If sap_hana_install_use_fapolicyd is defined in a playbook or inventory,
use that one instead of sap_hana_install_configure_fapolicyd (which is also defined
in defaults/main.ylm).

As a consequence, when using the new variables, the old ones should be
removed from the playbook or inventory - otherwise, the new variables
will be ignored.

Relates to #1134.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to #1134.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
sap_ha_install_hana_hsr: Rework role with new features, validations and compatibility for 2.20
…yd-dir-definitions-02

sap_hana_install: simplified and more flexible SELinux and fapolicyd handling
Solves issue #1137. Also adds tag sap_hana_install_check_hana_exists.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to #1137

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to #1137.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
The tag sap_hana_install_check_installation has been removed in this
commit, for reducing complexity and testing efforts.

Relates to #1137.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to #1137.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
sap_hana_install_hdblcm_commandline, from tasks/main.yml.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
…sap_hana_install

sap_hana_install: Rework tags
sap_storage_setup/SUSE: Add btrfs support for SLES 16
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>

@ja9fuchs ja9fuchs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

The content was already reviewed when it was added to dev.

@marcelmamula marcelmamula left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@berndfinger
berndfinger merged commit 76cc967 into main Jan 13, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants