Actions
Story #8701
openAs a pulp_installer user, I can use the full logic to add repos to the system no matter which role I apply
Status:
NEW
Priority:
Normal
Assignee:
-
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
% Done:
100%
Estimated time:
(Total: 0:00 h)
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
As mentioned in #7773 , we should refactor our logic to add repos to the system (in a robust & configurable manner) into another role like pulp_repos
.
I propose the following design:
- This is a dependency role. pulp_common, pulp_redis, pulp_database, will all depend on it.
- When a role like pulp_common depends on it, it passes variables like
__pulp_repos_epel: true
to denote which repos the role needs. It passes variables via roles/pulp_common/meta/main.yml :dependencies:
- If a user wants to disable the logic to add the repo (if they added it manually), they'll pass a variable like
pulp_repos_epel: false
to disable it. - Existing variables for configuring how we add the repos to the system, like
epel_release_packages
, should still used.
This logic is found in:
- roles/pulp_common/tasks/ambiguously-named-repo.yml
- roles/pulp_common/tasks/repos.yml
Related issues
Updated by mdepaulo@redhat.com over 3 years ago
- Related to Issue #7773: pulp_installer fails to install redis due to no EPEL7 added
Actions