edestecd / puppet-mariadb

Puppet Module for managing MariaDB
GNU General Public License v3.0
3 stars 21 forks source link

Support Bootstrapping the cluster #4

Open edestecd opened 7 years ago

edestecd commented 7 years ago

Currently you need to login to the first node you create and run something like:

root@cent7.2$ galera_new_cluster        # systemd
root@cent6.8$ service mariadb bootstrap # init.d

After puppet runs.

On successive nodes you need to login and manually restart mariadb to join the cluster after puppet runs.

It would be nice if this module could do that automatically. It would of course need to know which node is the first or when there is no existing cluster...

This seems somewhat complex, but I think it is doable and should probably be optional, or in an additional class that you can apply if you want this functionality.