Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

L7-redis (8) Versions 1.0.8

Installs/Configures redis, multi instace support

Policyfile
Berkshelf
Knife
cookbook 'L7-redis', '~> 1.0.8', :supermarket
cookbook 'L7-redis', '~> 1.0.8'
knife supermarket install L7-redis
knife supermarket download L7-redis
README
Dependencies
Quality 17%

L7-redis cookbook

Build Status
security
Cookbook Version

Description

Configures Redis via Opscode Chef

It can handle multiple instances with different configurations 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")
  • appendonly: persistence type (default "yes")
  • appendfsync: persistence flush (default "everysec")
  • no_appendfsync_on_rewrite: (default "no")
  • auto_aof_rewrite_percentage: (default 100)
  • auto_aof_rewrite_min_size: (default "64mb")
  • aof_rewrite_incremental_fsync: (default: "yes")
  • config: configuration hash with parameters like above

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

A redis instance with default attributes overridden:

node.override['L7-redis']['config']['databases'] = 16
node.override['L7-redis']['config']['repl-backlog-size'] = '256mb'

L7_redis_pool 'redis6379' do
  config ({
    'port' => '6379',
    'bind' => '0.0.0.0',
    'maxmemory' => '100mb'
  })
end

L7_redis_pool 'redis6380' do
  config ({
    'port' => '6380',
    'bind' => '127.0.0.1',
    'maxmemory' => '10mb',
    'slaveof' => '127.0.0.1 6379'
  })
end

TODO

Implement multiversion support.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

  • Freely distributable and licensed under the MIT license.
  • Copyright (c) 2016 Gabor Szelcsanyi

image

Dependent cookbooks

cron >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

1.0.8 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.0.8 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.0.8 failed this metric

FC066: Ensure chef_version is set in metadata: L7-redis/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: L7-redis/resources/pool.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: L7-redis/providers/pool.rb:106
FC085: Resource using new_resource.updated_by_last_action to converge resource: L7-redis/providers/pool.rb:119
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.8 passed this metric

Testing File Metric
            

1.0.8 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.8 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number