From 6781ff9f76387bdaacde70795d77b72bc3e06c9b Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Wed, 4 Oct 2023 20:42:06 -0400 Subject: [PATCH] Fixes #36801: Make Redis the default cache type --- manifests/init.pp | 2 +- spec/classes/foreman_spec.rb | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 98433a914..d7b39e347 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -292,7 +292,7 @@ Optional[Integer[0]] $foreman_service_puma_threads_min = undef, Integer[0] $foreman_service_puma_threads_max = 5, Optional[Integer[0]] $foreman_service_puma_workers = undef, - Hash[String, Any] $rails_cache_store = { 'type' => 'file' }, + Hash[String, Any] $rails_cache_store = { 'type' => 'redis' }, Boolean $keycloak = false, String[1] $keycloak_app_name = 'foreman-openidc', String[1] $keycloak_realm = 'ssl-realm', diff --git a/spec/classes/foreman_spec.rb b/spec/classes/foreman_spec.rb index e9f4925a0..ce3974b67 100644 --- a/spec/classes/foreman_spec.rb +++ b/spec/classes/foreman_spec.rb @@ -451,8 +451,6 @@ describe 'with custom redis' do context 'with redis_url' do let(:params) { super().merge(dynflow_redis_url: 'redis://127.0.0.1:4333/') } - it { should_not contain_class('redis') } - it { should_not contain_class('redis::instance') } end end