sous-chefs / redisio

Development repository for the redisio cookbook
https://supermarket.chef.io/cookbooks/redisio
Apache License 2.0
297 stars 301 forks source link

Redis service should be restarted when installing a new version #445

Open decoyjoe opened 3 years ago

decoyjoe commented 3 years ago

:person_frowning: Problem Statement

On a system where Redis is already installed and running, when redisio installs a new version of Redis it does not restart the Redis service. This results in a scenario where Redis was upgraded on the system but the running instance is still running on the old version until a manual service restart.

:grey_question: Possible Solution

When the redisio cookbook installs a new version of Redis and node['redisio']['safe_install'] = false then the cookbook should restart the Redis service after installing the new version.

Additionally if node['redisio']['safe_install'] = false then updating the redis config file should also trigger a service restart.