-
Notifications
You must be signed in to change notification settings - Fork 6
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
Create/update systems and license keys #16
Create/update systems and license keys #16
Conversation
Hi @MatthiasWinzeler thank you for contributing. I will review this PR soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First Review is Done. @MatthiasWinzeler thank you for this PR we appreciate it.
@rainerleber many thanks for your feedback! I took care of the obvious comments and added follow-up questions where it was unclear to me how we proceed. |
@MatthiasWinzeler thanks for clarify the questions. Only a few things are left :-) after that we are ready to merge I think. |
Co-authored-by: Rainer Leber <[email protected]>
Co-authored-by: Rainer Leber <[email protected]>
Co-authored-by: Rainer Leber <[email protected]>
@rainerleber thanks - merged your suggestions and responded your other comments. Can you give it a final review? |
@rainerleber FYI, cleanup PR is in #17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @MatthiasWinzeler thank you for the great work
This PR adds the functionality discussed in issue #15.
Scope
license_keys
, which allows creating and updating systems and their license keys.It is closely modeled after the interactions in the portal https://me.sap.com/licensekey, meaning that systems and license keys are always updated together (i.e. you cannot just create new license keys, but you have to edit the system, add license keys, and submit everything together).
systems_info
, which allows retrieving existing systems (i.e. its system number), so that the system update/license key creation can be done in an idempotent manner (see example below).Example
An example usage of the module which allows to idempotently create or update a system and retrieve the license key file:
I tested the following use cases to ensure full idempotency.
system.nr
, its data attributes are updated and any changed licenses applied. If the licenses had no changes, they are not updated.Let me know if you need more examples (should we create a sample playbook in the repo?), more extensive documentation or other changes. Please also let me know if I have to sign any CLA. Eager to get your feedback!