TechnicPack / redis-formula

Redis state

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Redis state

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License:Other


Languages

Language:HTML 81.4%Language:SaltStack 13.4%Language:Shell 3.9%Language:Ruby 1.4%