[chef] Re: Re: Automated Drupal cookbook


Chronological Thread 
  • From: Benedict Steele < >
  • To:
  • Subject: [chef] Re: Re: Automated Drupal cookbook
  • Date: Thu, 12 Jan 2012 14:25:39 +0000

Hi, 

If you want to install Drupal in a headless manner, then drush & drush make are your best options. From the command line, from within your drupal site root, you'd run:

$ drush site-install --db-url="mysql://root: :port/dbname
You can pass other parameters which are outlined here: http://drush.ws/#site-install

The Drupal Vagrant cookbook contains some useful recipes - http://drupalcode.org/project/vagrant.git/tree/refs/heads/7.x-1.x:/cookbooks - which you should be able to pick apart to figure out what's happening. 

Cheers, 

Ben


====================
Benedict Steele
Director
HomeMade Digital

www.homemadedigital.com
Skype: hyperdimensional
Telephone: +442071931431
Mobile: +44 7855 222278
Twitter: @benedictsteele @homemadedigital


On 11 January 2012 20:29, Bryan McLellan < "> > wrote:
On Wed, Jan 11, 2012 at 11:34 AM, Sachin Sagar Rai < "> > wrote:
> Hi, Is there any cookbook for Drupal that does the whole installation
> without going to http://<server_fqdn>/install.php manually after
> installation?

Unfortunately this is a symptom of software being designed to have a
simple web interface for configuration that makes it difficult to
automatically configure it. This is because the developers naturally
then associate a web interface with a database, and these
configuration options are stored in deep, dark locations. But now that
there is a simple interface to change those, it doesn't come up that
it is hard to modify them through any other interface.

There is a drupal cookbook on the community site [1] that requires
manually browsing install.php. It also includes a recipe to install
drush. I'm not familiar with drupal, but from the drush web site it
appears to be a command line interface to drupal. Perhaps this /could/
be automated to configure drupal in lieu of the install.php page.

http://drupal.org/project/drush

Bryan

[1] http://community.opscode.com/cookbooks/drupal




Archive powered by MHonArc 2.6.16.

§