Managing Drupal sites

Drupal is a content management system that lets you build websites quickly by plugging together canned modules, and makes it relatively easy for users to create and edit their own content. It's particularly suited to management with Puppet because there is a powerful command-line tool, drush, which you can use to install and manage Drupal sites.

If we combine the automation power of drush with the recipes that we already created for MySQL databases and Apache virtual hosts, we can build a recipe that installs everything necessary for a Drupal site with a single resource.

Getting ready...

  1. Create a new drupal module as follows:
    # mkdir /etc/puppet/modules/drupal
    # mkdir /etc/puppet/modules/drupal/manifests
  2. Create the file /etc/puppet/modules/drupal/manifests/init.pp ...

Get Puppet 2.7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.