Skip to content
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

Merged
merged 1 commit into from
May 4, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented May 4, 2020

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.

@@ -48,6 +48,7 @@
}

foreman_config_entry { 'remote_execution_cockpit_url':
value => "${cockpit_path}/=%{host}",
value => "${cockpit_path}/=%{host}",
require => Class['foreman::database'],
Copy link
Member

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

Copy link
Member Author

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).

Copy link
Member

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

Copy link
Member Author

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.

@ekohl
Copy link
Member Author

ekohl commented May 4, 2020

Looks like we need to use the SCL postgres due to Rails 6. I'll update #699

@lpramuk
Copy link

lpramuk commented May 4, 2020

What's ETA here? This is blocking QE automation. Can we expect it to be in presnap 0.2 ?

@mmoll
Copy link
Contributor

mmoll commented May 4, 2020

@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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants