-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Add ovirt role #54600
Add ovirt role #54600
Conversation
Please add integration tests, even if they cannot be run in CI, at least it gives confidence that various aspects have been verified (idempotency, check-mode, etc...). It also helps to attest certain use-cases still work when changes are made in the future... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@KKoukiou @derez @machacekondra @mwperina @nasx As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
- "Should the role be present/absent." | ||
choices: ['present', 'absent'] | ||
default: present | ||
mutable: |
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.
I think you can't create imutable role, and all roles created by users are mutable, so this parameter is not needed.
description: | ||
- "List of permits which role will have" | ||
- "Permit 'login' is default and all roles will have it." | ||
- "Dictionary can contain following value." |
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.
It's not dicitinonary. It's list of permit names.
name=dict(default=None), | ||
mutable=dict(default=True, type='bool'), | ||
administrative=dict(default=False, type='bool'), | ||
permits=dict(type='list', default=[]), |
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.
Hmm, I would not use default [], because if you update only description for example of the role it would remove all pertmis I ithink
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.
Has this comment regarding default
been resolved?
- "List of permits which role will have" | ||
- "Permit 'login' is default and all roles will have it." | ||
- "Dictionary can contain following value." | ||
- "C(name) - Name of permit." |
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.
You miss description parameter of the role.
) | ||
state = module.params['state'] | ||
if state == 'present': | ||
module.params.get('permits').append('login') |
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.
I just wonder what will happen if user specify login and you append login, maybe it will fail on engine side? Can you please use set and cast it to list?
administrative: true | ||
permits: | ||
- manipulate_permissions | ||
- create_instance |
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.
An example of removing role would be nice.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
+1 |
Thanks all |
SUMMARY
Add ovirt role
Fixes #54199
ISSUE TYPE
COMPONENT NAME
ovirt
ADDITIONAL INFORMATION