Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #36801: Make Redis the default cache type #1134

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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