cookbook 'L7-redis', '= 1.0.6'
L7-redis (8) Versions 1.0.6 Follow0
Installs/Configures redis, multi instace support
cookbook 'L7-redis', '= 1.0.6', :supermarket
knife supermarket install L7-redis
knife supermarket download L7-redis
L7-redis cookbook
Description
Configures Redis via Opscode Chef
It can handle multiple instances with different configuratioins on the same machine.
Currently only one redis version is supported.
Supported Platforms
- Ubuntu 12.04+
- Debian 7.0+
Recipes
-
L7-redis
- The default no-op recipe.
Providers
-
L7_redis_pool
- Configures redis instance
Usage
Provider parameters:
-
port
: listen port (default 6379) -
bind
: listen address (default "127.0.0.1") -
unixsocketperm
: Unix socket permission (default 755) -
timeout
: timeout interval (default 0, no timeout) -
tcp_keepalive
: tcp keepalive interval (default 0, no keepalive) -
loglevel
: log level (default "notice") -
databases
: number of databases (default 16) -
datadir
: directory for storing data (default /usr/lib/redis-poolname) -
maxmemory
: maximum memory to use (default "1gb") -
maxmemory_policy
: eviction policy (default "volatile-lru") -
maxmemory_samples
: memory samples (default 3) -
slaveof
: master server ip address and port (default no master) -
slave_read_only
: is slave read only? (default "yes") -
masterauth
: password for master server -
snapshotting
: snapshotting (default true) -
requirepass
: authentication password (default nil) -
snapshot_rules
: snapshot rules (default [ "900 1", "300 10", "60 10000" ]) -
stop_writes_on_bgsave_error
: stop writes on error (default "yes")
A redis instance with default settings:
L7_redis_pool 'basic_example'
A redis instance with custom parameters:
L7_redis_pool 'extended_example' do port '6390' bind '0.0.0.0' databases 2 datadir '/opt/custom_redis' end
TODO
Implement multiversion support.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
- Freely distributable and licensed under the MIT license.
- Copyright (c) 2015 Gabor Szelcsanyi
Dependent cookbooks
cron >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
1.0.6 failed this metric
FC017: LWRP does not notify when updated: /tmp/cook/8c7a146192bfe2a49342a3e5/L7-redis/providers/pool.rb:11
1.0.6 failed this metric