O'Reilly logo

Puppet 2.7 Cookbook by John Arundel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required