In most of cases we use ordered numbers with hostname and we use the first
controller as the galera master node.
Currently the host list generated is not sorted so we are not sure that
the first controller will be the first to run puppet. In that case we need to
wait the galera bootstrap timeout on the other controller nodes (~10min).
In most of cases we use ordered numbers with hostname and we use the first controller as the galera master node.
Currently the host list generated is not sorted so we are not sure that the first controller will be the first to run puppet. In that case we need to wait the galera bootstrap timeout on the other controller nodes (~10min).
This patch allow to sort the host list and reduce the time on step 1 for the galera bootstrap.