brianbianco/redisio — pull request #131 by zarry (2014-08-05 19:50:18+00:00)
Title: 2.0.0 wip manageconfig

Implementing some of the changes discussed in this thread. https://github.com/brianbianco/redisio/issues/117

Cleaned up some of the sentinel related recipes and providers. There was an issue with file resource as it related to an empty or nil log file. This was resolved by using an unless block for those two resources.

In addition to that the quorum_count is a configurable attribute still defaulting to the original value of 2.

Lastly two new attributes have been introduced to control whether chef manages the configuration for redis and redis sentinel. These default to false. Chef will will write out the initial config then no longer manage the files as long as they are present. The reason for this is redis-sentinel will make alterations to the configuration files to save state if/when it replaces the master node. Setting this to true will allow a chef to manage the file in the instance you are deploying new changes or setting a new master outside of the sentinel process.