Forge Home

twemproxy

This is a puppet module installs and configures Twemproxy.

8,998 downloads

8,203 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.2.7 (latest)
  • 1.2.6
  • 1.2.5
  • 1.1.5
released Mar 15th 2016
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'decebal2dac-twemproxy', '1.2.7'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add decebal2dac-twemproxy
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install decebal2dac-twemproxy --version 1.2.7

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

decebal2dac/twemproxy — version 1.2.7 Mar 15th 2016

Puppet-twemproxy

This module manages twemproxy package installation from source. It is based on and compatible with puppet-twemproxy.

The support version of twemproxy is 0.4.0 to take advantage of various improvements and in addtion working tests and addtional stats parameters have been added.

Currently acceptance test using centos 6.5

Currently only supports REDIS and not memcached.

USAGE

    twemproxy::resource::nutcracker4 { 'redis-twemproxy':
        redis_db             => 1,
        port                 => '22112',
        nutcracker_hash      => 'fnv1a_64',
        nutcracker_hash_tag  => '{}',
        distribution         => 'ketama',
        auto_eject_hosts     => true,
        verbosity            => 7,
        log_dir              => '/var/log/nutcracker',
        pid_dir              => '/var/run/nutcracker',
        statsaddress         => '127.0.0.1',
        statsport            => 22222,
        statsinterval        => 10000,
        members              =>  [
            {
                'ip'         => '127.0.0.1',
                'name'       => 'redis-6390',
                'redis_port' => '6379',
                'weight'     => '1',
                'timeout'    => 400
            },
            {
                'ip'         => '127.0.0.1',
                'name'       => 'redis-6391',
                'redis_port' => '6380',
                'weight'     => '1',
                'timeout'    => 400
            }
        ]
    }

Testing

bundle install
bundle exec rake test
bundle exec rake beaker

BEAKER_setfile=spec/acceptance/nodesets/centos-7-x64.yml bundle exec rake beaker

Dependencies

  1. puppetlabs/stdlib

Contributing

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