From 9c5d82d9bd72d2f837eb11b50500c31a0d38d0fa Mon Sep 17 00:00:00 2001 From: ZhenhuaZhang Date: Tue, 1 Mar 2016 10:55:04 +0800 Subject: [PATCH] fix setting node roles error in deployment on ubuntu Configurations in config-default.sh should take default values if they are set outside of the script. `roles` option is an exception. This patch fix it to maintain consistency behavior with other options. --- cluster/ubuntu/config-default.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/ubuntu/config-default.sh b/cluster/ubuntu/config-default.sh index d65b4b46fdf..e189d7afd06 100755 --- a/cluster/ubuntu/config-default.sh +++ b/cluster/ubuntu/config-default.sh @@ -21,7 +21,7 @@ export nodes=${nodes:-"vcap@10.10.103.250 vcap@10.10.103.162 vcap@10.10.103.223"} # Define all your nodes role: a(master) or i(minion) or ai(both master and minion), must be the order same -role=${role:-"ai i i"} +role=${roles:-"ai i i"} # If it practically impossible to set an array as an environment variable # from a script, so assume variable is a string then convert it to an array export roles=($role)