Skip to content

Add repository enable/disable feature to repo_manager domain - #5176

Open
richardhenwood-dell wants to merge 1 commit into
dell:issue-4849-omnia-modernizationfrom
richardhenwood-dell:repo-manager-rocky
Open

Add repository enable/disable feature to repo_manager domain#5176
richardhenwood-dell wants to merge 1 commit into
dell:issue-4849-omnia-modernizationfrom
richardhenwood-dell:repo-manager-rocky

Conversation

@richardhenwood-dell

Copy link
Copy Markdown
Collaborator

RE: #4993

This feature allows administrators to selectively enable or disable individual OS repositories in repo_manager_config.yml, providing storage optimization, bandwidth savings, and security control.

Changes:

  • Add 'enabled' boolean field to repository configuration schema (default: true)
  • Update repository processing logic to skip disabled repositories
  • Enhance catalog resolution to respect repository enablement status
  • Add comprehensive documentation and examples
  • Implement test coverage for enablement functionality

Files modified:

  • src/repo_manager/input/repo_manager_config.yml
  • src/repo_manager/plugins/module_utils/input_validation/schema/repo_manager_config.json
  • src/repo_manager/plugins/module_utils/input_validation/validators/repo_manager_config.py
  • src/repo_manager/plugins/module_utils/repo_manager/repo_settings.py
  • src/repo_manager/plugins/module_utils/repo_manager/catalog_resolver.py
  • src/repo_manager/docs/content-configuration-guide.md
  • test/repo_manager/library/messages/repo_manager_msgs.py
  • test/repo_manager/fvt/policy/test_repo_enablement.py (new)

Generated with Devin

Issues addressed by this Pull Request

Addresses #4993

Description of the Solution

Add a new field in repo_manager_config.yml that enables or disables inclusion of a given respository

Suggested Reviewers

@snarthan

@richardhenwood-dell

Copy link
Copy Markdown
Collaborator Author

sorry - need to fix the lint issues before requesting a review.

@richardhenwood-dell
richardhenwood-dell force-pushed the repo-manager-rocky branch 2 times, most recently from 9500502 to 6e42548 Compare September 8, 2026 10:42
@richardhenwood-dell

Copy link
Copy Markdown
Collaborator Author

It turns out this code is not suitable. I'm re-working it.

This feature allows administrators to selectively enable or disable individual
OS repositories in repo_manager_config.yml, providing storage optimization,
bandwidth savings, and security control.

Changes:
- Add 'enabled' boolean field to repository configuration schema (default: true)
- Update repository processing logic to skip disabled repositories
- Enhance catalog resolution to respect repository enablement status
- Add comprehensive documentation and examples
- Implement test coverage for enablement functionality

Files modified:
- src/repo_manager/input/repo_manager_config.yml
- src/repo_manager/plugins/module_utils/input_validation/schema/repo_manager_config.json
- src/repo_manager/plugins/module_utils/input_validation/validators/repo_manager_config.py
- src/repo_manager/plugins/module_utils/repo_manager/repo_settings.py
- src/repo_manager/plugins/module_utils/repo_manager/config.py
- src/repo_manager/plugins/module_utils/repo_manager/catalog_resolver.py
- src/repo_manager/docs/content-configuration-guide.md
- test/repo_manager/library/messages/repo_manager_msgs.py
- test/repo_manager/fvt/policy/test_repo_enablement.py (new)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@richardhenwood-dell
richardhenwood-dell marked this pull request as ready for review September 9, 2026 03:22
@richardhenwood-dell

Copy link
Copy Markdown
Collaborator Author

@Nagachandan-P @snarthan - do you have feedback on this PR?

@richardhenwood-dell

Copy link
Copy Markdown
Collaborator Author

there is an alternative here that might be better:
/opt/omnia/repo_manager/input/project_default/repo_manager_config.yml has an entry for 'baseos'. if you specificy rockylinux in baseos, it will use rocky.

@snarthan

Copy link
Copy Markdown
Collaborator

As discussed, having the enable/disable capability at the individual repository level is a good enhancement. However, since we are currently using DNF caching in the code to download specific packages, there could be some impact on that workflow.
Let's revisit and discuss bringing in this feature after the RC1 tags are completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants