inviqa/chef-magento — pull request #6 by svalaskevicius (2012-09-30 16:20:05+00:00)
Title: Feature/safe install on remote db

check for the database existence using magento db client configuration, for not to depend on mysql cookbook and also to be able to detect a remote database (which is particularly important when your main magento app server is different than DB host).

skip local.xml manipulation if database is detected, as otherwise it conflicts with capi/webi-strano based deployed directory structure as it deletes local.xml file (symlink) and creates new file. The recipe still leaves chef-magento::config_local inclusion for non-destructive local.xml changes