Add percona support for Debian server only. New attribut ['mysql']['client']['type'] for mysql client type : mysql/percona/percona-cluster. Set packages regarding the type of client Mysql.
Fix listen address, if a cloud attribut exist, use it.Add percona support with ['mysql']['server']['type'] attribut, set to none by default. This attribut must be set by node/role or apps within chef, to set the type of Mysql server. Permitted value are : mysql/percona/percona-cluster. Set ['mysql']['tunable']['query_cache_limit'] and ['mysql']['tunable']['query_cache_size'] only for non percona server.
Add percona support. Attribut ['mysql']['server']['type'] must be set on node/role or apps. Permitted values are mysql/percona/percona-cluster. Set packages accordindly to server type.
Add default attribut for my.cnf for a percona cluster
Activate percona rebo
Add user fro backup and for percona replication. A percona cluster must have ['mysql']['server']['type'] set to percona cluster, and also have ['mysql']['percona']['tunable']['wsrep_cluster_name'] set to cluster name, ['mysql']['percona'][percona_cluster'] to init for the first member of the cluster,and at the firt run of chef, and to enable then, so that the gcomm:// line could be generated with working values. Also ['mysql']['percona']['role'] must be set to 'master' for the first node of the cluster. For percona cluster password are generated only for the first node of the cluster, other nodes retrieve same password. For other mysql server, password are generated by node. Set mysql client regarding mysql server type. For percona cluster the server_id is generated regarding other member of the cluster. For percona cluster the gmcast:// line is generated in order to listen on private interface only
A support for percona cluster and cluster monitoring.A percona cluster must have ['mysql']['server']['type'] set to percona cluster, and also have ['mysql']['percona']['tunable']['wsrep_cluster_name'] set to cluster name, ['mysql']['percona'][percona_cluster'] to init for the first member of the cluster,and at the firt run of chef, and to enable then, so that the gcomm:// line could be generated. Add the percona repo. Add xinetd and mysqlchk server as specified in http://www.percona.com/doc/percona-xtradb-cluster/5.5/howtos/haproxy.html. Generate a preseed file per mysql server type. Adapt grant.sql so that xtrabackup db user exist for db replication over percona. Add process to root for monitoring. Add /root/.my.cnf for easier db acces. On my.cnf.erb template, percona value are generated for ['mysql']['percona']['tunable'], all key,value are setup into the file if it exist.
Recipe that add the percona repo to the node
fix typo from old ruby release
Add check from the access point only (haproxy or other)
Add .my.cnf into root home dir