Skip to content

Commit

Permalink
ovirt_permission: add mac pool (#353)
Browse files Browse the repository at this point in the history
* ovirt_permission: add mac pool

* add documentation

* add changelogs
  • Loading branch information
mnecas committed Oct 8, 2021
1 parent 1743cba commit 3874644
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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

0 comments on commit 3874644

Please sign in to comment.