Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_install_media_detect: Leave non-role directories untouched #529

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

berndfinger
Copy link
Member

@berndfinger berndfinger commented Nov 16, 2023

At the beginning, we currently need to move files from lower level directories to the top level so that all SAP archive files are in the same directory and the role always starts file handling at the same status (future versions might support using also the desired file location in separate subdirectories).
We want the role to only move files from directories the role is able to create, and leave all other directories in place, including their contents. This is the purpose of this PR.
Solves issue #523 .

With the output of 'sapfile -s', we are able to get the names of
directories into which the role moves SAP archive files. So the role can
now move files from there back to the top level and remove those
directories. The extracted directories are also (recursively) removed at
this stage.

The above is needed for idempotency (meaning that the role can run
twice or more and the result is always identical).

All other directories remain in place, including their contents.

Solves issue sap-linuxlab#523.
@berndfinger berndfinger changed the base branch from main to dev November 16, 2023 14:43
@berndfinger berndfinger changed the title sap_install_media_detect: Solve issue 523 new sap_install_media_detect: Leave non-role directories untouched Nov 16, 2023
Copy link
Member

@sean-freeman sean-freeman left a comment

Choose a reason for hiding this comment

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

lgtm 👍 this will permit an end-user to use a directory (e.g. /software_files) to store more than just the SAP software binaries (for example backup files and 3rd party addon software) without concern these additional files could be removed by the Ansible Role

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.

2 participants