class drupal inherits pear { case $apache_www_folder { '': { fail("you need to define \$apache_www_folder for drupal module") } } # We use drupal source from upstream package { "drupal6": ensure => absent, } # Drupal shell package { "drush": ensure => installed, } # Drupal management script file { "/usr/local/sbin/drupal": ensure => present, content => template('drupal/drupal.sh.erb'), owner => root, group => root, mode => 755, } }