From 8440817163d26061e03966281a19ee61928e732f Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Tue, 14 Apr 2020 21:17:58 -0400 Subject: [PATCH] Fixes #28352: Enable tuning config for foreman scenario --- config/foreman.migrations/20200415012059_set_tuning_fact.rb | 2 ++ config/foreman.yaml | 3 +++ katello/hooks/boot/13-hiera.rb => hooks/boot/13-tuning.rb | 0 .../pre_commit/13-hiera.rb => hooks/pre_commit/13-tuning.rb | 0 4 files changed, 5 insertions(+) create mode 100644 config/foreman.migrations/20200415012059_set_tuning_fact.rb rename katello/hooks/boot/13-hiera.rb => hooks/boot/13-tuning.rb (100%) rename katello/hooks/pre_commit/13-hiera.rb => hooks/pre_commit/13-tuning.rb (100%) diff --git a/config/foreman.migrations/20200415012059_set_tuning_fact.rb b/config/foreman.migrations/20200415012059_set_tuning_fact.rb new file mode 100644 index 00000000..2ae8b2ae --- /dev/null +++ b/config/foreman.migrations/20200415012059_set_tuning_fact.rb @@ -0,0 +1,2 @@ +scenario[:facts] = {} unless scenario.key?(:facts) +scenario[:facts]['tuning'] ||= 'default' diff --git a/config/foreman.yaml b/config/foreman.yaml index b77e4e46..716e8f46 100644 --- a/config/foreman.yaml +++ b/config/foreman.yaml @@ -25,6 +25,9 @@ # If using the Debian ruby-kafo package, uncomment this # :kafo_modules_dir: /usr/lib/ruby/vendor_ruby/kafo/modules +:facts: + tuning: 'default' + ## Kafo tuning, customization of core functionality :name: Foreman :description: Default installation of Foreman diff --git a/katello/hooks/boot/13-hiera.rb b/hooks/boot/13-tuning.rb similarity index 100% rename from katello/hooks/boot/13-hiera.rb rename to hooks/boot/13-tuning.rb diff --git a/katello/hooks/pre_commit/13-hiera.rb b/hooks/pre_commit/13-tuning.rb similarity index 100% rename from katello/hooks/pre_commit/13-hiera.rb rename to hooks/pre_commit/13-tuning.rb