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.
- Create a new
drupalmodule as follows:
# mkdir /etc/puppet/modules/drupal # mkdir /etc/puppet/modules/drupal/manifests
- Create the file