Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.3 KB

README.rst

File metadata and controls

65 lines (38 loc) · 1.3 KB

redis

Formula to install and configure redis.

Todo

  • merge redis 2.4 and 2.6 templates to generic redis.conf.jinja

Available states

Install redis only

Install redis and start up the service ( Ubuntu + RedHat based systems should work ).

For a list of all available options, look at: redis/files/redis-{version}.conf.jinja - also have a look at the pillar.example and map.jinja.

To use the new redis 3.2 template (more structured) add the following line to the pillar:

source_path: salt://redis/files/redis-3.2-ng.conf.jinja

For options that aren't in the template (timeout, for example in redis-2.8 template), you can use extra_opts:

extra_opts:
timeout: 10

Install redis sentinel. Compatible with Ubuntu 14/16 and CentOS 6/7.

Testing

Testing is done with kitchen-salt.

Install it via bundler:

$ bundle

Then run test-kitchen with:

$ kitchen converge

Make sure the tests pass:

$ kitchen verify