puppet-redis
puppet-redis copied to clipboard
Redis options + sentinel
Trying to have some options for redis and also configure Sentinel, but If I declare the class configs for Redis and Sentinel, I get
Duplicate declaration: Package[redis] is already declared in file
because both installs it. am I missing how to pass the same config with only sentinel?
class { 'redis': conf_tcp_keepalive => '60', conf_slaveof => $conf_slaveof, system_sysctl => true
}
class { 'redis::sentinel' :
conf_port => '26379',
sentinel_confs => {
'redis_master' => {
'monitor' => $redis_master_monitor,
'down-after-milliseconds' => '60000',
'failover-timeout' => 180000,
'parallel-syncs' => '3',
}
}
}
for the momment I have commented out the package redis section in sentinel.pp to make it work.