-
Notifications
You must be signed in to change notification settings - Fork 136
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
Refs #36801: Set Redis as the default cache on upgrade #888
Conversation
Puppet change -- theforeman/puppet-foreman#1134 |
config/foreman.migrations/20231005004305_redis_default_cache.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good, but tests are red for an unrelated reason. I want to do the big puppetlabs/stdlib 9.x upgrade in our modules, but that will be bumpy.
@@ -0,0 +1,3 @@ | |||
if answers['foreman'].is_a?(Hash) && answers.dig('foreman', 'rails_cache_store', 'type') == 'file' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about dig, but didn't suggest it because I wasn't 100% sure if rails_cache_store
was always a hash or nil
. Now that I think more about it, I think that's all good.
|
It's related. The stupid thing is that puppetlabs/stdlib 8.x deprecated some functions without replacement and puppetlabs/stdlib 9.0 removed those functions. So the upgrade to 9.x requires to bump the lower bound too. It's really painful. If they only made a compatibility release in 8.x it would have been much smoother. |
If you rebase, it should be green because b324bda pinned things. |
No description provided.