ubuntu provider environment variable 'roles' instead of 'role'

This commit is contained in:
jzhoucliqr
2016-08-20 23:09:06 -07:00
parent e2c4abc654
commit fa29fedd3b
+2 -2
View File
@@ -83,7 +83,7 @@ First configure the cluster information in cluster/ubuntu/config-default.sh, fol
```shell ```shell
export nodes="vcap@10.10.103.250 vcap@10.10.103.162 vcap@10.10.103.223" export nodes="vcap@10.10.103.250 vcap@10.10.103.162 vcap@10.10.103.223"
export role="ai i i" export roles="ai i i"
export NUM_NODES=${NUM_NODES:-3} export NUM_NODES=${NUM_NODES:-3}
@@ -95,7 +95,7 @@ export FLANNEL_NET=172.16.0.0/16
The first variable `nodes` defines all your cluster nodes, master node comes first and The first variable `nodes` defines all your cluster nodes, master node comes first and
separated with blank space like `<user_1@ip_1> <user_2@ip_2> <user_3@ip_3> ` separated with blank space like `<user_1@ip_1> <user_2@ip_2> <user_3@ip_3> `
Then the `role` variable defines the role of above machine in the same order, "ai" stands for machine Then the `roles` variable defines the roles of above machine in the same order, "ai" stands for machine
acts as both master and node, "a" stands for master, "i" stands for node. acts as both master and node, "a" stands for master, "i" stands for node.
The `NUM_NODES` variable defines the total number of nodes. The `NUM_NODES` variable defines the total number of nodes.