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

Unable to AUTH to MASTER: -ERR Client sent AUTH, but no password is set #256

Open
aryeharmon opened this issue Feb 8, 2018 · 1 comment

Comments

@aryeharmon
Copy link

Unable to AUTH to MASTER: -ERR Client sent AUTH, but no password is set

when password is set

@basti-nis
Copy link
Contributor

hey aryeharmon,

how does your code look like, especially the class { 'redis':} part?

I assume you forget to set the requirepass parameter.

Here is an example:
variables:

$redis_auth = 'secret'
$redis_master_ip = 'IP-OF-THE-MASTER'

master:

class { '::redis':
bind => $ipaddress,
requirepass => $redis_auth,
masterauth => $redis_auth,
}

slave:

class { '::redis':
bind => $ipaddress,
slaveof => "$redis_master_ip 6379",
requirepass => $redis_auth,
masterauth => $redis_auth,
}

sentinel part for master+slave:

class { '::redis::sentinel':
master_name => 'redis-cluster',
redis_host => $ipaddress,
redis_port => 6379,
down_after => 5000,
failover_timeout => 12000,
auth_pass => $redis_auth,
}

greetings

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

2 participants