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

slaveof cannot be set from search #63

Closed
phumpal opened this issue Jun 21, 2013 · 3 comments
Closed

slaveof cannot be set from search #63

phumpal opened this issue Jun 21, 2013 · 3 comments

Comments

@phumpal
Copy link

phumpal commented Jun 21, 2013

I have a redis-master and redis-slave roles. In the slave wrapper cookbook I'm using search to pull the IP for "slaveof" but I'm getting an unknown method error

redis_server = search(:node, 'role:redis-master').first
node.override[:redisio][:default_settings][:slaveof] =  redis_server[:rackspace][:private_ip]

returns

Recipe compiler error
NoMethodError
2:>> node.override[:redisio][:default_settings][:slaveof] =  redis_server[:rackspace][:private_ip]
@idyedov
Copy link

idyedov commented Jul 22, 2013

I think node.override[:redisio][:default_settings][:slaveof] is expected to be a hash that looks like:

{
  "address" => "ip",
  "port" => "6379"
}

@phumpal
Copy link
Author

phumpal commented Jul 24, 2013

You are correct. Minor oversight on my behalf - thanks!

@phumpal phumpal closed this as completed Jul 24, 2013
@lock
Copy link

lock bot commented Nov 28, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants