Cover by John Arundel

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required