Task #4770
closedAdd an ansible-pulp role to dynamically load pre-requisite roles
0%
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_prerequisites[0] 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.
Updated by dkliban@redhat.com over 5 years ago
- Tracker changed from Issue to Task
- % Done set to 0
Updated by ehelms@redhat.com over 5 years 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:
Updated by dkliban@redhat.com over 5 years 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)
Updated by bmbouter over 5 years 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?
Updated by dkliban@redhat.com over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
- Sprint set to Sprint 57
Updated by dkliban@redhat.com over 5 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
dkliban@redhat.com) - Sprint deleted (
Sprint 57)
Updated by dkliban@redhat.com about 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
We don't use pre-req roles anymore.