rancher / quickstart

378 stars 328 forks source link

Add control for creating the cluster in configure-rancher-server #215

Closed enrico9034 closed 1 year ago

enrico9034 commented 1 year ago

Hi, I'm doing some tests with Vagrant quickstart env, but sometimes when the script tries to create the cluster, the rancher isn't ready, and installation can't complete because the cluster does not exist. With this loop, if you haven't cluster id because the first curl terminates without success, the script can retry and proceed with installation only when the cluster is created on the rancher side, and the script can fetch cluster id to create a register token.