Skip to content

Conversation

@berndfinger
Copy link
Member

Changes in this PR:

  • Unify the definition of SELinux and fapolicyd directories
  • Add an option to enable and start fapolicyd after the installation of SAP HANA (default is now not to enable and not to start it)

Solves issue #1134.

- unify the definition of SELinux and fapolicyd directories
- add an option to enable and start fapolicyd after the installation of
  SAP HANA (default is now not to enable and not to start it)

Solves issue sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
Also rename a loop variable.

Relates to #sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
... to sap_hana_install_configure_fapolicy.

Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
... to sap_hana_install_configure_selinux

Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
- Ensure backward compatibility with selinux and fapolicyd variables
- Fix typo in fapolicyd var names
- Improve explanation section for selinux var in defaults/main.yml

Signed-off-by: Bernd Finger <[email protected]>
- Move variable preparation, including assertions, to separate task file
- Set the default for starting fapolicyd to 'true'

Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
It should be sufficient to display the local command to be executed on
the managed node.

Signed-off-by: Bernd Finger <[email protected]>
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 sap-linuxlab#1134.

Signed-off-by: Bernd Finger <[email protected]>
Copy link
Contributor

@marcelmamula marcelmamula left a comment

Choose a reason for hiding this comment

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

LGTM from code perspective, @ja9fuchs will do testing and review.

Copy link
Contributor

@ja9fuchs ja9fuchs left a comment

Choose a reason for hiding this comment

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

LGTM and run a basic test on an existing instance.

@berndfinger berndfinger merged commit b2c2683 into sap-linuxlab:dev Dec 3, 2025
18 checks passed
@berndfinger berndfinger deleted the combine-selinux-and-fapolicyd-dir-definitions-02 branch December 3, 2025 13:27
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