The current approach is quite confusing, it was non-obvious (to me, anyway!) from looking at settings.php or reading most of the install related provision code where the credentials are supposed to come from. I spent a while chasing a red herring thinking that they were supposed to come from the template process, or perhaps that the site.php/drushrc.php file was supposed to be added as an include at some point before someone on IRC pointed out that provision adds them to the running environment in the vhost definition. I was trying to use the provision install command independently, so this was not apparent.
Could we add a comment to the settings.php template (and perhaps to the provision_prepare_environment function) explaining this setup?
Comments
Comment #1
Anonymous (not verified) commentedFair enough! Committed vigorous explanations in both settings.php and provision_prepare_environment() to HEAD.
Feel free to patch it if you feel it isn't sufficient.