fsalum / puppet-redis

Redis Server Module for Puppet
Apache License 2.0
21 stars 67 forks source link

Redis options + sentinel #53

Open plarivee opened 8 years ago

plarivee commented 8 years ago

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 commented 8 years ago

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