[COOK-3149] my.cnf should be created before install

http://tickets.opscode.com/browse/COOK-3149.

Note only tested against CentOS v6 and this is a significant alteration.