Add an ansible-pulp role to dynamically load pre-requisite roles
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 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.
#2 Updated by firstname.lastname@example.org about 1 year 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:
You could specify:
There is also what is done here:
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?
Please register to edit this issue