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

Add ovirt role #54600

Merged
merged 14 commits into from
Apr 5, 2019
Merged

Add ovirt role #54600

merged 14 commits into from
Apr 5, 2019

Conversation

mnecas
Copy link
Contributor

@mnecas mnecas commented Mar 29, 2019

SUMMARY

Add ovirt role

Fixes #54199

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

ovirt

ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Mar 29, 2019

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. new_plugin This PR includes a new plugin. ovirt oVirt and RHV community support:community This issue/PR relates to code supported by the Ansible community. labels Mar 29, 2019
@dagwieers
Copy link
Contributor

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...

@ansibot

This comment has been minimized.

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. needs_triage Needs a first human triage before being processed. labels Mar 29, 2019
@ansibot

This comment has been minimized.

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Mar 29, 2019
@ansibot

This comment has been minimized.

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Mar 29, 2019
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Mar 30, 2019
@ansibot
Copy link
Contributor

ansibot commented Mar 30, 2019

@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 shipit if you would like to see it merged.

click here for bot help

@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Mar 30, 2019
- "Should the role be present/absent."
choices: ['present', 'absent']
default: present
mutable:
Copy link
Contributor

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."
Copy link
Contributor

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=[]),
Copy link
Contributor

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

Copy link
Contributor

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."
Copy link
Contributor

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')
Copy link
Contributor

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
Copy link
Contributor

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.

@ansibot

This comment has been minimized.

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Apr 1, 2019
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Apr 1, 2019
@ansibot

This comment has been minimized.

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Apr 1, 2019
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 1, 2019
@machacekondra
Copy link
Contributor

+1

@ansibot ansibot added shipit This PR is ready to be merged by Core and removed community_review In order to be merged, this PR must follow the community review workflow. labels Apr 3, 2019
@gundalow gundalow merged commit 6f5aacc into ansible:devel Apr 5, 2019
@gundalow
Copy link
Contributor

gundalow commented Apr 5, 2019

Thanks all

@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 cloud module This issue/PR relates to a module. new_module This PR includes a new module. new_plugin This PR includes a new plugin. ovirt oVirt and RHV community shipit This PR is ready to be merged by Core support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: Create ovirt_configure module
5 participants