Version information
released Dec 5th 2016
This version is compatible with:
- , , ,
This module has been deprecated by its author since Mar 15th 2019.
The author has suggested puppet-redis as its replacement.
Start using this module
Documentation
arioch/redis — version 1.2.4 Dec 5th 2016
Puppet Redis
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';
}
Redis 3.0 Clustering
class { 'redis':
bind => '10.0.1.2',
appendonly => true,
cluster_enabled => true,
cluster_config_file => 'nodes.conf',
cluster_node_timeout => 5000,
}
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
- Fork it
- Create a feature branch (
git checkout -b my-new-feature
) - Run rspec tests (
bundle exec rake spec
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Dependencies
- puppetlabs/apt (>= 2.3.0 <3.0.0)
- puppetlabs/stdlib (>= 1.0.2 <5.0.0)
- stahnma/epel (>= 1.0.2 <2.0.0)
Copyright (C) 2012 Tom De Vylder 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.