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

Update repository.py #1266

Merged
merged 3 commits into from
Jul 16, 2021
Merged
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions plugins/modules/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@
- repositories will be automatically enabled on a registered host subscribed to this product
type: bool
required: false
os_versions:
description:
- Identifies whether the repository should be disabled on a client with a non-matching OS version
igramic marked this conversation as resolved.
Show resolved Hide resolved
type: list
elements: str
required: false
choices:
- rhel-6
- rhel-7
- rhel-8
extends_documentation_fragment:
- theforeman.foreman.foreman
- theforeman.foreman.foreman.entity_state_with_defaults
Expand Down Expand Up @@ -292,6 +302,7 @@ def main():
ignorable_content=dict(type='list', elements='str'),
ansible_collection_requirements=dict(),
auto_enabled=dict(type='bool'),
os_versions=dict(type='list', elements='str', choices=['rhel-6', 'rhel-7', 'rhel-8']),
),
argument_spec=dict(
state=dict(default='present', choices=['present_with_defaults', 'present', 'absent']),
Expand Down