COOK-3149  my.cnf should be created before install

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