Installs redis 3.2.x for CentOS and removes the default package startups and configuration.
Note: This cookbook does not make use of redis sentinel
An example setup with 3x redis daemons, the standard redis-server, redis-sessions and redis-cache
"redis-omnibus": {
"servers": {
"redis": {
"port": 6379,
"maxmemory": "512m"
},
"sessions": {
"port": 5000,
"maxmemory": "256mb"
},
"cache": {
"port": 5001,
"maxmemory": "1024mb",
"maxmemorypolicy": "allkeys-lru"
}
}
}
"run_list": [
"recipe[redis-omnibus]"
]
It assumes you have the yum-ius package (this cookbook does not provide it)
You could use https://github.com/chef-cookbooks/yum-ius
- CentOS 6.x
- CentOS 7.x
- Chef 12.7+
- Chef 13.x