-
Notifications
You must be signed in to change notification settings - Fork 271
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
Ensure Foreman is provisioned before configuring cockpit #835
Conversation
@@ -48,6 +48,7 @@ | |||
} | |||
|
|||
foreman_config_entry { 'remote_execution_cockpit_url': | |||
value => "${cockpit_path}/=%{host}", | |||
value => "${cockpit_path}/=%{host}", | |||
require => Class['foreman::database'], |
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.
Does this ensure that all of the class has executed before this will execute? e.g. db:seed
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.
Yes, those resources are contained within the class (if they're managed).
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.
Thanks, I just loose track of puppet and how it build it's dependency cycle. Sounds like we could clean this up a bit?
https://github.com/theforeman/puppet-katello/blob/master/manifests/application.pp#L36
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.
Yes, that would be better. I've had a look at doing this in the type definition, but since the config part is also used within that, we can't always require the class.
Looks like we need to use the SCL postgres due to Rails 6. I'll update #699 |
What's ETA here? This is blocking QE automation. Can we expect it to be in presnap 0.2 ? |
@ekohl please rebase :) |
Previously foreman_config_entry could be executed before the database was available. This ensures the database is ready and the plugin installed before attempting to change a config setting.
Previously foreman_config_entry could be executed before the database was available. This ensures the database is ready and the plugin installed before attempting to change a config setting.