Project

Profile

Help

Story #8701

open

As a pulp_installer user, I can use the full logic to add repos to the system no matter which role I apply

Added by mdepaulo@redhat.com over 3 years ago. Updated almost 3 years ago.

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:

  1. This is a dependency role. pulp_common, pulp_redis, pulp_database, will all depend on it.
  2. 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:
  3. 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.
  4. 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

Sub-issues 1 (0 open1 closed)

Task #9087: Document how to use pulp_installer in disconnected modeCLOSED - DUPLICATE

Actions

Related issues

Related to Pulp - Issue #7773: pulp_installer fails to install redis due to no EPEL7CLOSED - CURRENTRELEASEmdepaulo@redhat.comActions

Also available in: Atom PDF