Git Product home page Git Product logo

puppet-redis's Introduction

#Redis Module for Puppet puppet-redis Build Status

This module installs and manages a Redis server. All redis.conf options are accepted in the parameterized class.

##Important

If you are upgrading this module from 0.x to 1.0+, please test it carefully outside production as it is not fully backwards compatible.

Some class parameters were added, removed or had their default values changed.

The redis.conf template has been completely rewritten to support Redis 2.2+ to 2.8+.

##Operating System

Tested on CentOS 6.5, Ubuntu Saucy/Trusty/Precise, Debian 7.4
redis.conf options compatible with Redis 2.2, 2.4, 2.6, 2.8

##Quick Start

Use the default parameters:

class { 'redis': }

To change the port and listening network interface:

class { 'redis':
  conf_port => '6379',
  conf_bind => '0.0.0.0',
}

##Parameters

Check the init.pp file for a complete list of parameters accepted.

  • custom sysctl

To enable and set important Linux kernel sysctl parameters as described in the Redis Admin Guide - use the following configuration option:

class { 'redis':
  system_sysctl => true
}

By default, this sysctl parameter will not be enabled. Furthermore, you will need the sysctl module defined in the Modulefile file.

  • service restart

If you need to execute a controlled restart of redis after changes due master/slave relationships to avoid that both are restarted at the same time use the parameter below.

class { 'redis':
  service_restart => false
}

By default service restart is true.

#Sentinel

This module supports Redis Sentinel that comes with Redis 2.8+ with all the configuration parameters.

It manages upstart scripts (can be deactivated with parameter manage_upstart_scripts = false).

##Operating System

Tested on Ubuntu 14.04 with Redis 2.8

##Quick Start

Example:

class { redis::sentinel:
  conf_port      => '26379',
  sentinel_confs => {
    'mymaster' => {
      'monitor'                 => '127.0.0.1 6379 2',
      'down-after-milliseconds' => '60000',
      'failover-timeout'        => 180000,
      'notification-script'     => '/etc/redis/scripts/thescript.py',
      'parallel-syncs'          => '3',
    },
    'resque' => {
      'monitor'                 => '127.0.0.1 6379 4',
      'down-after-milliseconds' => '10000',
      'failover-timeout'        => 180000,
      'notification-script'     => '/etc/redis/scripts/thescript.py',
      'parallel-syncs'          => '5',
    }
  }
}

##Copyright and License

Copyright (C) 2014 Felipe Salum

Felipe Salum can be contacted at: [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

puppet-redis's People

Contributors

doismellburning avatar fsalum avatar klavsklavsen avatar mattboston avatar pmoranga avatar ripienaar avatar sammcj avatar sbadia avatar tmclaugh avatar trlinkin avatar vgarcia-te avatar zxjinn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.