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

Fixes #28934: Install rh-postgresql12 in devel scenario #463

Merged
merged 1 commit into from Feb 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions hooks/boot/01-kafo-hook-extensions.rb
Expand Up @@ -32,12 +32,16 @@ def foreman_server?
module_enabled?('foreman')
end

def devel_scenario?
module_enabled?('katello_devel')
end

def local_postgresql?
param_value('foreman', 'db_manage') || param_value('katello', 'candlepin_manage_db')
param_value('foreman', 'db_manage') || param_value('katello', 'candlepin_manage_db') || devel_scenario?
end

def local_redis?
(foreman_server? && !param_value('foreman', 'jobs_sidekiq_redis_url')) || param_value('foreman_proxy::plugin::pulp', 'pulpcore_enabled')
(foreman_server? && !param_value('foreman', 'jobs_sidekiq_redis_url')) || param_value('foreman_proxy::plugin::pulp', 'pulpcore_enabled') || devel_scenario?
end

def needs_postgresql_scl_upgrade?
Expand Down