diff --git a/config/foreman.migrations/20210819164113_reset_puma_workers_and_max_threads.rb b/config/foreman.migrations/20210819164113_reset_puma_workers_and_max_threads.rb new file mode 100644 index 00000000..124a8147 --- /dev/null +++ b/config/foreman.migrations/20210819164113_reset_puma_workers_and_max_threads.rb @@ -0,0 +1,12 @@ +# https://github.com/theforeman/puppet-foreman/commit/533c1f3be8069139d7375841019afeb7c1102830 +if answers['foreman'].is_a?(Hash) + if answers['foreman']['foreman_service_puma_workers'] == 2 + answers['foreman'].delete('foreman_service_puma_workers') + end +end + +if answers['foreman'].is_a?(Hash) + if answers['foreman']['foreman_service_puma_threads_max'] == 16 + answers['foreman'].delete('foreman_service_puma_threads_max') + end +end diff --git a/config/katello.migrations/210819164117-reset-puma-workers-and-max-threads.rb b/config/katello.migrations/210819164117-reset-puma-workers-and-max-threads.rb new file mode 100644 index 00000000..124a8147 --- /dev/null +++ b/config/katello.migrations/210819164117-reset-puma-workers-and-max-threads.rb @@ -0,0 +1,12 @@ +# https://github.com/theforeman/puppet-foreman/commit/533c1f3be8069139d7375841019afeb7c1102830 +if answers['foreman'].is_a?(Hash) + if answers['foreman']['foreman_service_puma_workers'] == 2 + answers['foreman'].delete('foreman_service_puma_workers') + end +end + +if answers['foreman'].is_a?(Hash) + if answers['foreman']['foreman_service_puma_threads_max'] == 16 + answers['foreman'].delete('foreman_service_puma_threads_max') + end +end