puppet-redis icon indicating copy to clipboard operation
puppet-redis copied to clipboard

Redis options + sentinel

Open plarivee opened this issue 9 years ago • 1 comments

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',
        }
      }
    }

plarivee avatar Oct 26 '15 16:10 plarivee

for the momment I have commented out the package redis section in sentinel.pp to make it work.

plarivee avatar Oct 26 '15 21:10 plarivee