Backport 9070 "Remove Redis from status information if unused" to 3.14.z
Added by mdellweg over 2 years ago
Conditionally include Redis connection information
Redis is only used when cache is enabled or RQ tasking is used. In other cases, the connection is not needed. We've changed the Foreman installer to only install Redis if needed, just to stop wasting resources1. However, this leads to warnings.
This PR changes the status view to only include Redis if it's used.
(cherry picked from commit 8ab8afb45675cc9c420eb1872c0dfcfd973d657b)