Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis options + sentinel #53

Open
plarivee opened this issue Oct 26, 2015 · 1 comment
Open

Redis options + sentinel #53

plarivee opened this issue Oct 26, 2015 · 1 comment

Comments

@plarivee
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant