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

ovirt_permission: add mac pool #353

Merged
merged 3 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/353-ovirt_permission-add-mac-pool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- ovirt_permission - add mac pool (https://github.com/oVirt/ovirt-ansible-collection/pull/353).
9 changes: 9 additions & 0 deletions plugins/modules/ovirt_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- vm
- vm_pool
- vnic_profile
- mac_pool
default: vm
type: str
user_name:
Expand Down Expand Up @@ -126,6 +127,13 @@
object_name: mydatacenter
quota_name: myquota
role: QuotaConsumer

- @NAMESPACE@.@NAME@.ovirt_permission:
user_name: user1
authz_name: example.com-authz
object_type: mac_pool
object_name: Default
role: MacPoolUser
'''

RETURN = '''
Expand Down Expand Up @@ -279,6 +287,7 @@ def main():
'vm',
'vm_pool',
'vnic_profile',
'mac_pool',
]),
authz_name=dict(type='str', required=True, aliases=['domain']),
object_id=dict(type='str'),
Expand Down