-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refs #13658 - remove cycle from puppet graph #106
Conversation
However, this removes the guarantee that this is run at the correct time given this requires the certs exist and db is migrated. The better fix might be to remove the pulp client certs from the giant dependency block in init.pp. |
@ehelms katello::config was needed to seed the db, but the db seeding was needed for katello::config. I broke out the pulp client config so it can happen after the db seeding. Additionally I implemented your other suggestion for the other cycle. 🚳 🚳 🚳 |
ignore_missing => false, | ||
require => [Exec['foreman-rake-db:seed'], Class['::certs::pulp_client']], | ||
} | ||
class { '::certs::pulp_client': } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well move this into the pulp_client_config class, and I might consider just using the namespace, e.g.
config/pulp_client.pp
katello::config::pulp_client
The previous commit (theforeman@4ecc339) added two cycles to the puppet dep graph, causing `katello-installer` to fail. The offending line was: ``` require => [Exec['foreman-rake-db:seed'], Class['::certs::pulp_client']], ``` Note that each of these `require`s individually will cause a cycle. The cycle for just `foreman-rake-db:seed` is http://i.imgur.com/eA8rWc6.png and the cycle for `::certs::pulp_client` is http://i.imgur.com/EgeI2X2.png. This refactoring avoids the cycles while still maintaining deps.
latest commit has a cycle, fixing |
@ehelms I lied, sorry. Current PR passes my test and is ready for review. |
I think this looks good, @ekohl mind weighing in on the design change here? |
I will porbably need to test this in the installer, the current implementation results in:
|
I can't judge if the |
This passed my installer testing - thanks @beav ! |
Refs #13658 - remove cycle from puppet graph
The previous commit (4ecc339) added two cycles to the puppet dep graph, causing
katello-installer
to fail.The offending line was:
Note that each of these
require
s individually will cause a cycle. The cycle for justforeman-rake-db:seed
is http://i.imgur.com/eA8rWc6.png and the cycle for::certs::pulp_client
is http://i.imgur.com/EgeI2X2.png.Removal of these lines makes
katello-installer
succeed.