- Notifications
You must be signed in to change notification settings - Fork186
Puppet Module to manage Redis
License
NotificationsYou must be signed in to change notification settings
voxpupuli/puppet-redis
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
include redis
class {'redis':bind=>'10.0.1.1',}
With authentication
class {'redis':bind=>'10.0.1.1',masterauth=>'secret',}
class {'redis':bind=>'10.0.1.2',slaveof=>'10.0.1.1 6379',}
With authentication
class {'redis':bind=>'10.0.1.2',slaveof=>'10.0.1.1 6379',masterauth=>'secret',}
class {'redis':bind=>'10.0.1.2',appendonly=>true,cluster_enabled=>true,cluster_config_file=>'nodes.conf',cluster_node_timeout=> 5000,}
$listening_ports = [6379,6380,6381,6382]class {'redis':default_install=>false,service_enable=>false,service_ensure=>'stopped',}$listening_ports.each |$port| {$port_string = sprintf('%d',$port) redis::instance {$port_string:service_enable=>true,service_ensure=>'running',port=>$port,bind=>$facts['networking']['ip'],dbfilename=>"${port}-dump.rdb",appendfilename=>"${port}-appendonly.aof",appendfsync=>'always',require=> Class['Redis'], }}
Disabled by default but if you really want the module to manage the requiredrepositories you can use this snippet:
class {'redis':manage_repo=>true,}
On Ubuntu, you can use a PPA by using theppa_repo
parameter:
class {'redis':manage_repo=>true,ppa_repo=>'ppa:rwky/redis',}
Warning note that PPA usage requirespuppetlabs/apt on Ubuntu distros
Optionally install and configuration a redis-sentinel server.
With default settings:
include redis::sentinel
With adjustments:
class {'redis::sentinel':master_name=>'cow',redis_host=>'192.168.1.5',failover_timeout=> 30000,}
When managing the repo, it needspuppetlabs/apt.
For administration of sysctl it depends onherculesteam/augeasproviders_sysctl.
This function is used to get data from redis.You must have the 'redis' gem installed on your puppet master.
Functions are documented inREFERENCE.md
About
Puppet Module to manage Redis
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages0
No packages published