Skip to content

Commit

Permalink
Fixes #29282 - Enable Puma migration on compatible upgrades
Browse files Browse the repository at this point in the history
The commit bd02fbd reverted commit 0b244f5.

theforeman/puppet-foreman#814 fixed the race
condition of systemctl start foreman returning immediately before the
service was up.
  • Loading branch information
sthirugn committed Apr 1, 2020
1 parent a3a0fe6 commit f8a127c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/foreman.migrations/20200305172758_enable_puma.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if answers['foreman'].is_a?(Hash)
mod_answers = answers['foreman']
if mod_answers['passenger'] && !(mod_answers['ipa_authentication'] || mod_answers['keycloak'])
answers['foreman']['passenger'] = false
end
end
6 changes: 6 additions & 0 deletions config/katello.migrations/200306192827-enable_puma.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if answers['foreman'].is_a?(Hash)
mod_answers = answers['foreman']
if mod_answers['passenger'] && !(mod_answers['ipa_authentication'] || mod_answers['keycloak'])
answers['foreman']['passenger'] = false
end
end

0 comments on commit f8a127c

Please sign in to comment.