Discussion:
[redis-db] Automate Redis Cluster Creation
Navneet Singh
2018-10-26 14:49:42 UTC
Permalink
I am working on creating a shell script to automate setup of redis cluster.
But I am getting stuck at the create cluster command.

When my script is executing the command

redis-cli --cluster create

It asks to type a yes, but I want to make it non interactive & it should
proceed with me giving an input.

I have tried:

yes | redis-cli --cluster create

But this is also not working.

Please help. Thanks In Advance.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Salvatore Sanfilippo
2018-10-26 15:19:33 UTC
Permalink
echo yes | redis-cli ... should work as expected, however probably we
should have a --yes option in this case.
I am working on creating a shell script to automate setup of redis cluster. But I am getting stuck at the create cluster command.
When my script is executing the command
redis-cli --cluster create
It asks to type a yes, but I want to make it non interactive & it should proceed with me giving an input.
yes | redis-cli --cluster create
But this is also not working.
Please help. Thanks In Advance.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs https://redislabs.com

"If a system is to have conceptual integrity, someone must control the
concepts."
— Fred Brooks, "The Mythical Man-Month", 1975.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Navneet Singh
2018-10-26 15:32:40 UTC
Permalink
Thanks a lot Salvatore. It works.


On Friday, October 26, 2018 at 8:49:53 PM UTC+5:30, Salvatore Sanfilippo
Post by Salvatore Sanfilippo
echo yes | redis-cli ... should work as expected, however probably we
should have a --yes option in this case.
Post by Navneet Singh
I am working on creating a shell script to automate setup of redis
cluster. But I am getting stuck at the create cluster command.
Post by Navneet Singh
When my script is executing the command
redis-cli --cluster create
It asks to type a yes, but I want to make it non interactive & it should
proceed with me giving an input.
Post by Navneet Singh
yes | redis-cli --cluster create
But this is also not working.
Please help. Thanks In Advance.
--
You received this message because you are subscribed to the Google
Groups "Redis DB" group.
Post by Navneet Singh
To unsubscribe from this group and stop receiving emails from it, send
<javascript:>.
Post by Navneet Singh
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs https://redislabs.com
"If a system is to have conceptual integrity, someone must control the
concepts."
— Fred Brooks, "The Mythical Man-Month", 1975.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Loading...