inuits/puppet-redis

Name: puppet-redis

Owner: Inuits

Description: null

Created: 2015-08-04 11:57:29.0

Updated: 2015-08-04 11:57:30.0

Pushed: 2015-08-04 11:40:16.0

Homepage: http://arioch.github.io/puppet-redis/

Size: 212

Language: Puppet

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Puppet Redis

Build status

Build Status

Example usage
Standalone
class { 'redis':;
}
Master node
class { 'redis':
  bind        => '10.0.1.1';
  #masterauth  => 'secret';
}
Slave node
class { 'redis':
  bind        => '10.0.1.2',
  slaveof     => '10.0.1.1 6379';
  #masterauth  => 'secret';
}
Manage repositories

Disabled by default but if you really want the module to manage the required repositories you can use this snippet:

class { 'redis':
  manage_repo => true,
}

On Ubuntu, “chris-lea/redis-server” ppa repo will be added. You can change it by using ppa_repo parameter:

class { 'redis':
  manage_repo => true,
  ppa_repo    => 'ppa:rwky/redis',
}
Redis Sentinel

Optionally install and configuration a redis-sentinel server.

With default settings:

class { 'redis::sentinel':}

With adjustments:

class { 'redis::sentinel':
  master_name => 'cow',
  redis_host  => '192.168.1.5',
  failover_timeout => 30000,
}
Unit testing

Plain RSpec:

$ rake spec

Using bundle:

$ bundle exec rake spec

Test against a specific Puppet or Facter version:

$ PUPPET_VERSION=3.2.1  bundle update && bundle exec rake spec
$ PUPPET_VERSION=2.7.19 bundle update && bundle exec rake spec
$ FACTER_VERSION=1.6.8  bundle update && bundle exec rake spec
Contributing

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.