Skip to content

Commit

Permalink
Fixes #36801: Make Redis the default cache type
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms authored and ekohl committed Oct 17, 2023
1 parent 623d7f6 commit 7d34199
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,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',
Expand Down
8 changes: 7 additions & 1 deletion spec/classes/foreman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,13 @@

describe 'with custom redis' do
context 'with redis_url' do
let(:params) { super().merge(dynflow_redis_url: 'redis://127.0.0.1:4333/') }
let(:params) do
super().merge(
dynflow_redis_url: 'redis://127.0.0.1:4333/',
rails_cache_store: {type: 'redis', 'urls': ['127.0.0.1:4334']}
)
end

it { should_not contain_class('redis') }
it { should_not contain_class('redis::instance') }
end
Expand Down

0 comments on commit 7d34199

Please sign in to comment.