Project

Profile

Help

Task #4770

Add an ansible-pulp role to dynamically load pre-requisite roles

Added by dkliban@redhat.com 6 months ago. Updated 3 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

pulp-pre-requisites role needs to be added to the installer so that users have an opportunity to install pre-requisites for plugins such as pulp_rpm and pulp-certguard.

This role needs to look at the list of plugins being installed and check if any of them specify 'pre-requisite' key. For each pre-requisite this role finds, it needs to dynamically load the role and execute it. The role can assume that the pre-requisite roles are present in the working directory.

The pulp_rpm_prerequisites0 role should be added as a submodule to the pulplift repo. This way when pulp_rpm is specified in the list of installed plugins, the pre-requisite role will be present.

[0] https://github.com/pulp/pulp-rpm-prerequisites


Checklist

History

#1 Updated by dkliban@redhat.com 6 months ago

  • Tracker changed from Issue to Task
  • % Done set to 0

#2 Updated by ehelms@redhat.com 5 months ago

I think this ability already exists within the provided structures. You can specify a list of playbooks to the box definitions. For example, instead of what is found at:

https://github.com/pulp/pulplift/blob/master/vagrant/boxes.d/30-source.yaml#L9

You could specify:

```
....
ansible:
playbook:
- pre-playbook.yml
- main-playbook.yml
....
````

There is also what is done here:

https://github.com/pulp/pulplift/blob/4b6f8f007ceb80e9e359c60827494038f550b23a/playbooks/source-install.yml#L10-L11

#3 Updated by ttereshc 3 months ago

  • Checklist item Update docs (installation guide and quickstart guide) added

#4 Updated by dkliban@redhat.com 3 months ago

  • Subject changed from Add ability to specify a pre-playbook for pulplift to Add an ansible-pulp role to dynamically load pre-requisite roles
  • Description updated (diff)

#5 Updated by bmbouter 3 months ago

If that role is added to the installer itself then when pulplift's submodule upgrades to that ref it will receive it. For pulplift to use this installer feature it needs the vars pre-commented in the *-config.yml files. https://github.com/pulp/pulplift In other words this looks right except for the last line of the description (to me). What do you think?

#6 Updated by dkliban@redhat.com 3 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
  • Sprint set to Sprint 57

#7 Updated by dkliban@redhat.com 3 months ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (dkliban@redhat.com)
  • Sprint deleted (Sprint 57)

Please register to edit this issue

Also available in: Atom PDF