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 <bfinger@redhat.com>
Relates to sap-linuxlab#1134.

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

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Also rename a loop variable.

Relates to #sap-linuxlab#1134.

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

Signed-off-by: Bernd Finger <bfinger@redhat.com>
... to sap_hana_install_configure_fapolicy.

Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
... to sap_hana_install_configure_selinux

Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
- 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 <bfinger@redhat.com>
Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
- 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 <bfinger@redhat.com>
It should be sufficient to display the local command to be executed on
the managed node.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
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 <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
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.

Relates to sap-linuxlab#1134.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
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